13 ms·
MinIO: A Bare Metal Drop-In for AWS S3
- tyingq 5y agoThe gateway feature, where Minio works as a local cache for actual AWS S3 buckets, looks pretty nice. https://docs.min.io/docs/minio-gateway-for-s3.html https://docs.min.io/docs/minio-gateway-for-s3.html
- eropple 5y agoI've used this, years ago, at a company for exactly this, and it's really solid, I've also used it in a developer environment as a more expansive "fake S3" than the simpler ones I'd run across at the time. Good stuff.
- mdaniel 5y agoOne will wish to be cautious, as they recently changed their license to AGPL-3.0: https://github.com/minio/minio/blob/master/LICENSE https://github.com/minio/minio/blob/master/LICENSE because they're afraid of AWS offering Minio as a hosted service, I guess
- tyingq 5y agoThat seems okay, since you can use any S3 client library. So, good advice, but probably very few folks would have a need to touch the server side source. Minio's client side libraries appear to be packaged separately, and Apache licensed: https://github.com/minio/minio-go https://github.com/minio/minio-go https://github.com/minio/minio-js https://github.com/minio/minio-js (Etc)
- whateveracct 5y agoAnd if you do touch the server-side code..do it in an open source fork?
- syshum 5y agoWhy would AWS offer Minio, a clone of an AWS Service, as a service? That seems very confusing
- MonkeyClub 5y agoSo that AWS can still get people to pay subscription fees to them, instead of using their own hardware with a FOSS solution, if MinIO becomes too popular.
- remram 5y agoI don't understand. Aren't you describing S3? Why would Amazon offer a second version of S3?
- cyberge99 5y agoSelf hosted as a feature. Akin to managed vs colo hosting.
- motives 5y agoThey pretty much already offer this with outposts (its technically their hardware but its on your premises).
- remram 5y agoBy "self-hosted" you still mean still running on AWS hardware? I don't understand. Why would anybody pay EBS rates instead of S3 rates, to get data stored in the same place by the same people?
- deleted 5y ago[deleted]
- hdjjhhvvhga 5y agoI understood it as a joke referencing Aamazon's tendency to take just any open source product that happens to gain enough popularity, rename it and offer it as a shiny new feature of AWS.
- marcinzm 5y agoThey more likely afraid of smaller and upcoming cloud providers offering it as an S3 drop in.
- corobo 5y agoThis plus CDNs I'd imagine too. S3 protocol is the new FTP and minio ticks the box quickly, they want their share of that (and deserve it imo)
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- benlivengood 5y agoUnless you're running a locally patched version AGPL is indistinguishable from GPL.
- kkielhofner 5y agoWhile this is true a word of warning: if you ever end up in a due diligence situation or a source code audit AGPL can really freak people out and hang up/derail the process until you get them to understand this point. If you can at all.
- OJFord 5y agoI'm pretty sure that - the prospect of AWS hosting and rebranding minio - was a joke.
- deleted 5y ago[deleted]
- gunapologist99 5y agoPretty sure AWS would like to have something that at least looks and feels sorta like S3. And, being S3-compatible at an API level would be a big bonus for a company the size of AWS, especially if it had nearly native compatibility with the aws-cli tool.
- xrd 5y agoIt's amazing. I use it everywhere. The only limitation is that you don't have all the IAM access rules that you get with AWS. Oh wait, that's exactly why I love it.
- xrd 5y agoI feel like generating my own "S3 signed URLs" from Minio (as a node script) is a much better way to layer security than that IAM mess. And, the mc command line client is awesome. And, it all runs inside dokku which is incredible.
- andrewxdiamond 5y agoWhat specifically do you have issues with when it comes to IAM? It’s a complicated tool for sure, but it comes from the natural complication of dealing with auth in a very flexible way.
- killingtime74 5y agoProbably learning curve
- rhizome 5y agoYou answered your own question. "Very flexible" is a plus for Amazon because they can cover everybody's use-cases with a single concept. "Very flexible" is a minus for end users because they only need to take care of their own use-case. So you can say it's a "natural" complication, and you'd be right, but that says nothing about usability, which is where "issues" tends to come in.
- lazide 5y agoNot the parent, but IMO it is an awkward way of thinking of permissions in an automated environment. It fits a human model much better, where you have a long lived entity which is self contained and expected to be trustworthy. Alice should have access to all finance data in this bucket because she works in finance, or Bob should be able to access these EC2 instances because he admins them. It causes weird and overly broad privileges though usually, because you need to give permission to do any possible thing the job or user of the credentials COULD need to do, all the time. This happens because any action to limit the scope usually causes more human friction than it is worth. Ideally, when it is requested they do something, they get handed a token for the scope they are doing it in, which only gives them access to do the specific things they will need to do on the specific thing they need to do it, and only for the time they plausibly will need to do it for. This is a huge hassle for humans, and adds a lot of time and friction. For machines, it can be as simple as signing and passing along some simple data structures. So for example, Alice would get a token allowing access to Q4 ‘20 only if that was plausibly correct and necessary, and then only for how long it took to do whatever she was doing. Bob would only get a token to access the specific EC2 instance that needs him to log into it because of a failure of the management tools that otherwise would fix things - and only after telling the token issuing tool/authority that, where it can be logged. It makes a huge difference in limiting the scope compromises, catching security breeches and security bugs early on, identifying the true scope and accessibility of data, etc. Also, since no commonly issued token should probably ever provide access to get everything - where the IAM model pretty much requires that a job that gets any random one thing, has to be able to get ALL things, then you also end up with the potential for runtime performance optimizations, since you can prune in advance the set of possible values to search/return.
- tinco 5y agoIs HDFS nice? I did a lot of research before settling on Ceph for our in-house storage cluster, and I don't remember even considering HDFS and I don't really know why. Ceph also is a drop-in for S3 for bare metal clusters. I've been running Ceph for about a year now, and the start up was a bit rough. We are actually on second hand hard drives, that had a lot of bad apples, and the failures weren't actually very transparent to deal with, which was a bit of a disappointment. Maybe my expectations were too high, but I was hoping it would just sort of fix itself (i.e. down the relevant drive, send me a notification, and ensure continuity). I feel I had to learn way too much about Ceph to be able to operate it properly. Besides that the performance is also not stellar, it apparently scales with CPU frequency, which is a bit astonishing to me, but I've never designed a distributed filesystem so who am I to judge. I was looking for something that would scale with the company. Now we've got 70 drives, maybe next year 100 and the next year 200. Now all our drives are 4TB, but I'd like to switch them out for 14TB or 18TB drives as we go along. We're not in a position to just drop 100k on a batch of shiny state of the art machines at once. Many filesystems assume the number of drives in your cluster never changes, it's crazy.
- justinholmes 5y agoDid you not evaluate linstor?
- tinco 5y agoThanks, I didn't but it looks interesting, I'll research it later.
- wingmanjd 5y agoWe're spinning up a medium sized Proxmox clusters (~50 nodes in total) to replace our aging Xen clusters. I saw Ceph is available on the Proxmox platform, but was hesitant to make all the VM storage backed by Ceph (throwing all the eggs into a single basket). What were some of the other hurdles you faced in your Ceph deployment?
- tasqa 5y ago
- didip 5y agoAnyone compared MinIO vs Ceph? I like MinIO because it seems exponentially simpler to setup but I don't know about its distributed and scalability stories.
- opyh 5y agoWhile I can't say much about its handling when using it distributed, I have had some negative experiences with MinIO/ceph when handling files > 10G. One example: missing error handling for interrupted uploads leading to files that looked as if they had been uploaded, but had not. Both ceph and MinIO's implementations differ from AWS original S3 server implementation, in subtle ways. ceph worked more reliably, but IIRC, both for MinIO and ceph, there is no guarantee that a file you upload is readable directly after upload. You have to poll if it is there, which might take a long time for bigger files (I guess because of the hash generation). AWS's original behavior is to keep the socket open until you can actually retrieve the file, which isn't necessary better, as it can lead to other errors like network timeouts. I got it working halfway reliably by splitting uploads into multiple smaller files, and adding retry with exponential backoff. Then I figured out that using local node storage and handling distribution manually was much more efficient for my use case. So for larger use cases, I'd take the 'drop in' claim with a grain of salt. YMMV :)
- bambam24 5y agoGuys, don’t store your data in minio. Its a sandbox, not an actual object storage. Companies uses minio to store their temporary data not the actual critical data. For example if you have a project which you store objects to S33, At CI pipeline you don’t want to store temp files into S3 for cosr purposes. So instead you store at minio. A company must be crazy to use minio as their real data storage.
- wooptoo 5y agoMinIO is great. I use MinIO together with FolderSync (Android only) to automatically backup the photos from my phone to my local NAS. It runs a scheduled job every night and they're saved in the original HEIC format. I've also used MinIO to mock an S3 service for integration tests, complete with auth and whatnot.
- jpeeler 5y agoWere you already using MinIO? As somebody who wants to eventually backup photos on my phone, I'm curious why not just use Syncthing for that?
- wooptoo 5y agoTbh I wasn't aware of Syncthing. In this use case it would work just as well I suppose. One of the advantages of MinIO would be the wide compatibility with other S3 storage services. If my NAS had downtime while on holiday I could spin up a new bucket on S3/Backblaze/Wasabi and backup everything in a few minutes.
- heipei 5y agoI don't know when this was written, but MinIO does not have a great story (or really any story) around horizontal scalability. Yes, you can set it up in "distributed mode", but that is completely fixed at setup time and requires a certain number of nodes right from the beginning. For anyone who wants HA and horizontal elastic scalability, checkout SeaweedFS instead, it is based on the Facebook "Haystack" paper: https://github.com/chrislusf/seaweedfs https://github.com/chrislusf/seaweedfs
- killingtime74 5y agoI agree it’s great (and mostly used) for integration testing, do significant number of users actually use it for storage?
- gunapologist99 5y agoSeaweedfs has made some questionable security decisions (https://github.com/chrislusf/seaweedfs/issues/1937 https://github.com/chrislusf/seaweedfs/issues/1937).
- mosselman 5y agoYou can still pass the -ip flag right? This mostly means you probably need to read some 'Seaweedfs in production' sort of guide.
- gunapologist99 5y ago> you probably need to read some 'Seaweedfs in production' sort of guide. This comes across as slightly condescending. As I'm sure you'd agree, secure by default is very important, and it's what most responsible distributions aim for (i.e., Debian/Ubuntu). Starting up a daemon should not launch it in the most open way possible, but instead the most restricted way possible. A reasonable expectation is that you should not have to pass the -ip flag; daemons should default to a secure configuration (which probably means defaulting to -ip 127.0.0.1, which you should be able to easily override, if that is your intention, and achieve the default behavior by simply passing -ip 0.0.0.0/0).
- siscia 5y agoI wonder if this kind of article push business into the consulting funnel. Can the author let us know if he is happy with the business results of these articles?
- Proven 5y agoDrop-in as in drop-in replacement? Nope. No S3 s/w is a drop-in replacement for AWS S3. I am not going to read the post; maybe differences in API implementation and behavior are mentioned somewhere in the post, but if that's the case the title shouldn't talk about "drop-in".
- jeffbarr 5y agoAmazon S3 on Outposts (more info at https://aws.amazon.com/s3/outposts/ https://aws.amazon.com/s3/outposts/ ) runs on-premises, offers durable storage, high throughput, the S3 API, currently scales to 380 TB, and doesn't require you to watch for and deal with failing disks. I believe that it addresses many of the OP's reasons for deciding against S3.
- GiorgioG 5y agoAnd only costs $169,000 to start
- gunapologist99 5y agoHey, let's be fair. The storage-optimized instances start at only $425,931. ;)
- oneplane 5y agoIt's not like buying hardware, support personnel hours and write-off administration is that much cheaper, unless you're willing to discard some features, but at that point you're no longer comparing things equally.
- speedgoose 5y agoI'm not going to contact AWS sales when I can easily use minio on Docker or Kubernetes.
- Nullabillity 5y agoAt least disclose your conflicts of interest when writing spam like this.
- rodgerd 5y agoHave Outposts fixed their "always-on, lose connectivity, lose your outpost" problem that they had when I first asked about them? Can they scale down to "I need to spin up an S3 thing for local testing" for the cost of the storage and CPU? Am I locked into a multi-year agreement, or can I just go and throw it away in a month and stop paying?
- neilv 5y agoMinIO is something I'll look into. And, as another example to the article's, it might also come in handy for some data needs for factories with imperfect Internet reliability (e.g., when the main submarine cable between the factory and AWS Singapore gets severed :). This first example from the article sounds very valid, but is still personally funny to me, because it's related to the first use I made of S3, but in the opposite direction (due to different technical needs than the article's): > If an Airline has a fleet of 100 aircraft that produce 200 TB of telemetry each week and has poor network connectivity at its hub. Years ago, I helped move a tricky Linux-filesystem-based storage scheme for flight data recorder captures to S3. I ended up making a bespoke layer for local-caching, encryption (integrating a proven method and implementation, not rolling own, of course), compression, and legacy backward-compatibility. That was a pretty interesting challenge of architecture, operations, and systems-y software development. And the occasional non-mainstream technical requirements we encounter are why projects like this MinIO are interesting.
- joeyrobert 5y agoI know Minio can be used for production workloads, but Minio as a localhost substitute for an S3-like store is underrated. S3 dependent projects I work on spin up a Minio instance via docker-compose to get a fully local development experience.
- mekster 5y agoIn other words, I'm not sure what other use case it has by using Minio on top of more expensive block storage than using any other native S3 storage services.
- 0x000000001 5y agoBe warned that their code quality is pretty bad. There was a bug I was dealing with last year where it did not delete objects but returned the correct HTTP response code indicating it did. This was widespread, not just some edge case I encountered. Their broken test suite doesn't actually verify the object on disk changed. I tried to engage them but they blew me off.
- kapilvt 5y agoGithub issue link? They seem to have a solid ci setup, and I know several large enterprises using. But I found a bug for my usage != bad code quality.
- 0x000000001 5y agoMy usage was "setup a basic single node for testing, upload a file with mc client, delete a file with mc client". They failed that test. It was responding with 200s but the file was never deleted. There are loads of issues like this on their github: https://github.com/minio/minio/issues/8873 https://github.com/minio/minio/issues/8873
- tyingq 5y agoThat's an interesting issue. Boiled down to the object name having '//' in it, which drove a certain direction for the shard location that wasn't the same shard location that the delete function looked in. Sounds like the shard hashing happens before or after object name normalization depending on the operation. Ouch.
- _hyn3 5y agoBased on sib comment, it looks like it was related to a poor name sanitation / matching function (which says, to me, that's risky if you have untrusted names), but this could also be caused by a lazy or delayed deletion strategy.
- Areading314 5y agoIs Ceph with Rados Gateway a better alternative to this?
- sam0x17 5y ago> Unfortunately, none of the above are available to the public, let alone something outsiders can run on their own hardware. This is misleading. While there are no bare metal projects I'm aware of, there are 10+ S3-API compatible S3 alternatives, such as Wasabi, Digital Ocean Objects, etc., to name a few.
- sebyx07 5y agohttps://www.storj.io https://www.storj.io uses minio underneath, but they treat minio with respect, as a partner and pay their cut
- dzonga 5y agoSomething not really discussed a lot, FoundationDB works well as a blob / object store.
- _hyn3 5y agoIs the project still alive? It sounds great if so, but if it's good at that, why doesn't Apple run it for iCloud instead of GCP? (Aside from the obvious massive scale issues, but it seems like Apple would be able to afford to engineer that.)
- dzonga 5y agoyeah, apple recently open sourced it. https://apple.github.io/foundationdb/index.html https://apple.github.io/foundationdb/index.html
- toolslive 5y agodon't use minio for object storage. Use it because you need an s3 interface (and the object store you want to use doesn't provide it). It's actually pretty straight forward to build an integration if minio doesn't provide it. Implementation tip: make the minio side stateless. Have fun.
- tonymet 5y agoGiven all the config and services , why not just write to hdfs?
- WhyNotHugo 5y agoI use minio a lot for development. Some of my applications rely on S3 in production, but I don't want that dependency when running running the application on my machine - I use minio as a drop-in replacement for development. Since I use docker compose to handle my app's services (postgres, rabbitmq, etc), adding minio into it is a perfect fix.
- hjanssen 5y agoAt work, we use MinIO as a replacement of the S3 Api on our CI servers since we dont want to call production APIs for integration testing. One of the challenges we had was "pre-filling" the MinIO server with testdata. Some tests require reading a testfile from our mocked S3 API. We wanted to have those testfiles instantly available at MinIO startup, but couldn not get that to work with docker volume mounts, MinIO simply would not recognize the files and serve a 404. Has anyone got that working or a proposal for an alternative solution? We resorted to uploading the files via the application on startup (if it is in "testing mode"), but that does feel like a dirty hack.