14 ms·
Magic Pocket: Dropbox’s exabyte-scale blob storage system
- dymk 4y ago> 99.99% availability That seems... really bad, for the Core Core Service that Everything Depends On.
- abeppu 4y agoS3 standard storage class also says it's 99.99% availability so ... I wonder how hard it is to get beyond that? https://aws.amazon.com/s3/faqs/ https://aws.amazon.com/s3/faqs/
- sosodev 4y agoIt's extremely hard to get availability higher than that. Possible but not something companies are willing to promise in an SLA.
- awill 4y agoI'd say it's not so much that it's really hard, it's that the compromises aren't worth it. note, I worked on S3 2015-2017
- abeppu 4y agoSo ... e.g. for 5 nines, the erasure code configuration would demand that do more writes in more locations and the cost impact is too high?
- jl6 4y agoI imagine that as you add more nines, you start to hit more problems that are more out of your control. Like, how many nines do your backup diesel generators have?
- skrtskrt 4y agoor replication if you're not erasure coding. So yeah you need more storage-optimized server racks and all the associated manpower and maintenance, you also need them to be distributed across different datacenters and zones which of course also impacts latency and your ability to provide some appearance of consistency, then you also need the same distribution for stateless services serving the data. On and on and on and you might be nearly doubling cost to get to an extra 9 that almost all of your customers won't care about.
- sosodev 4y agoThat's a fair point. It would be quite possible if the customers were willing to pay a lot more. I worked on DigitalOcean's object storage for about a year not long ago. Makes sense that those of us who have been in this space would be interested in this article haha.
- foobiekr 4y agoAbsent here is any statement about how available is defined in terms of being _meaningfully up_ like iops or bps.
- CobrastanJorji 4y agoIt's a cost problem. You can absolutely get higher availability, but it requires more hardware, uses more networking, and it makes maintenance and feature development more expensive. Blob storage customers are very price sensitive, but they also want lots of availability. That's why you'll see various "tiers" of storage, to try and capture all the combinations of availability and storage cost that various kinds of customers might want. Pretty much nobody wants to pay twice the cost to turn an exabyte of 99.99% available data to 99.995% available data, so it's not a product.
- petters 4y agoNot really bad. It’s less than an hour per year. Most users would not notice.
- sosodev 4y agoHow is that bad? 99.99% means the system is down for less than an hour each year. https://uptime.is/99.99 https://uptime.is/99.99
- foobiekr 4y agoof course, it actually depends on how they define "up."
- rbanffy 4y agoWhen you build anything on it, you know it may not be available for a couple hours a year and architect around it. 99.99 isn't bad at all. Your ISP probably has worse SLAs.
- gumby 4y agoBy comparison the old US POTS phone system was required to maintain downtime of less than five minutes per decade. I have no idea what rules, if any, apply to the modern wireless systems. Note: The consent decree, the actual legal obligation of the Bell system, actually specified the percentage of times someone would pick up the phone and not get a dial tone or operator. It was surprisingly high -- IIRC something like 2%, which is why you can see people toggling the hook in old movies. The five minutes per decade constraint I know because some of my old customers made digital phone switches and they had to provide that SLA to their phone company customers, or else not get the order.
- deleted 4y ago[deleted]
- _trampeltier 4y agoThat was before we had to update every system every day :-)
- biofunsf 4y agoI'm having trouble finding any reference for the "five minutes per decade" downtime limit. That would be "6 9s" or 99.9999% uptime which is just crazy in today's world. Even today VOIP providers only claim 99.999%, though it seems like in practice many fail to even get close too that. I think I found the 756 page consent decree between Bell and the US you mentioned but I can't find a reference there either, though it is quite a massive doc with so-so OCR: https://www.google.com/books/edition/Consent_Decree_Program_of_the_Department/ovboRuQHqhAC?hl=en&bshm=ncc/1,ncc/1&gbpv=0 https://www.google.com/books/edition/Consent_Decree_Program_... Stepping back a bit, it seems like the FCC would be in charge of establishing rules like this but that consent decree I found (which might be the wrong one), is with the house Antitrust committee. (After my own Googling failed I also asked GPT-4 and it isn't aware of this either)
- sosodev 4y agoI think they got 5 nines mixed up with 6 nines. The 5 nines is 5 minutes per year. I asked ChatGPT and it claims they had a target of 5 nines which makes sense.
- colesantiago 4y agoOof. You're not wrong, this is really really bad, especially for Dropbox, storage is their business so I expected way better. These stats are no different to S3 at all. All of this engineering and moving away from AWS and for so few gain in availability. I was initially excited when they moved away from AWS and expected industry leading higher availability when they moved away, but I was wrong. This is disappointing for Dropbox which this is their main business, storing files without any minor hiccups or outages for years.
- awill 4y agothis is an overreaction. Dropbox is mostly storing files that are already stored on the customer's device, so customers usually won't notice an outage.
- colesantiago 4y agoHow is this an overreaction? I would expect Dropbox, a file storage company that proudly invests heavily in tech and infrastructure to achieve a better availability than what they already were on AWS (99.99%) In terms of availability the change is pretty much 0 and as a business / enterprise customer I might as well choose a different service with similar or higher 9s or (if my needs are complex) choose S3.
- nmjohn 4y agoCan you provide an example of an alternative service which will give higher than 4 nines for availability that an enterprise customer would pick instead if that < 1hr of downtime per year was too high?
- colesantiago 4y agoAWS (Architected Correctly) which I am sure Dropbox has experience in. https://aws.amazon.com/blogs/publicsector/achieving-five-nines-cloud-justice-public-safety/ https://aws.amazon.com/blogs/publicsector/achieving-five-nin... Here is a service that has managed to achieve 5x9s of availability: https://ably.com/ https://ably.com/
- eatonphil 4y agoMagic Pocket has been around for a while [0]! I'm curious if there is anything especially new that prompted the QCon talk and this blog post or if it was just a good time? [0] https://dropbox.tech/infrastructure/inside-the-magic-pocket https://dropbox.tech/infrastructure/inside-the-magic-pocket
- deleted 4y ago[deleted]
- facundo_dbx 4y agoAuthor here. We do try to post updates as much as we are able to in our blog: https://dropbox.tech/tag-results.magic-pocket https://dropbox.tech/tag-results.magic-pocket. While the talk did go through details of the system we've covered in the past, the purpose of the talk was to convey my personal learnings of managing such a system at this scale. See key takeaways here: https://qconsf.com/presentation/oct2022/magic-pocket-dropboxs-exabyte-scale-blob-storage-system https://qconsf.com/presentation/oct2022/magic-pocket-dropbox.... Sustaining a high amount growth while maintaining high availability, durability, and efficiencies at this scale is very difficult to do.
- varenc 4y agoFun bit of trivia: The name "Magic Pocket" comes from the very first Dropbox demo video. Back when the site was still on getdropbox.com. I believe the video was on the homepage when Dropbox was launched on HN. Here's a copy of it: https://www.youtube.com/watch?v=xy9nSnalvPc https://www.youtube.com/watch?v=xy9nSnalvPc
- bj-rn 4y agoThought it might have come from the bitmap brothers' game: https://en.m.wikipedia.org/wiki/Magic_Pockets https://en.m.wikipedia.org/wiki/Magic_Pockets
- LtdJorge 4y agoOr Doraemon
- mvdwoord 4y agoTriggering fond memories... Thanks!
- TheSpiceIsLife 4y agoThe Bitmat Brothers! Xenon came bundled with my Atari 1040ST and Magic Pockets was the first game I paid for with my money. Good times.
- bityard 4y agoSounds interesting, but I can't find the github link...
- james_cowling 4y agoWe had a lot of requests for open sourcing MP but I don't think it would have been very useful. The code itself is interesting to look at but the system is designed for very large data sets, has a lot of moving parts to manage and configure, and would be very difficult to operate at anything below at least double-digit petabytes. MP was designed for multiple exabytes across many data centers and geographic regions. A different system design (or just using S3) would be more appropriate for use at smaller scales.
- LeFantome 4y agoWhere I work, we deal with double to perhaps eventually triple digit petabytes. I was looking for the GitHub link. :(
- CobrastanJorji 4y agoThis is an impressive product, and I apologize, but I'm gonna go on a bit of a rant about the PR language. I hate the phrase "Our system has over twelve 9s of durability." Amazon was the first motherfucker to claim this, but the other cloud storage folks are also culpable, but at least they mostly had the modesty to add some weasel words like "designed for" and didn't just straight up claim there was less than a 1 in a trillion chance of a durability failure. You don't have twelve 9s of durability. Your collection of copies of data on the hard drives do, assuming they exist in a vacuum and nothing bad happens to them except the normal sorts of things that cause hard drive failures that are nice and completely independent. But it completely ignores all other sources of problem, and those are so many orders of magnitude more common that you might as well claim "God-given, perfect durability" because it'd be just as accurate.
- laluser 4y agoOf course, these systems are always designed for that. Just like every system is designed for a certain amount of availability. Also, even in a vacuum, things would degrade over time due to bit rot, etc. That's why the article mentions protections with verifiers and due to other things such accidental deletions due to potential bugs.
- sujayakar 4y agomagic pocket's tech lead (disclaimer: my cofounder at convex) has a whole talk on this concept of "durability theater" [1]! the tldr is that those numbers of 9s are just table stakes. no system should ever lose data due to routine disk failures. so then, as you mention, there's another whole art to mitigating those other sources of problems. [1] https://www.facebook.com/atscaleevents/videos/1741691622770601/ https://www.facebook.com/atscaleevents/videos/17416916227706...
- james_cowling 4y agoWe should also clarify that Sujay and I are part of the old old team :) The current team have been doing an awesome job since then! (a bunch of the early MP folks work at Convex now)
- dilyevsky 4y agoSo is this thing using parts of Ceph? Haven’t really seen OSD term used anywhere else…
- pinewurst 4y agoLustre used that nomenclature long before Ceph.
- MuffinFlavored 4y agohttps://www.lustre.org/ https://www.lustre.org/ > The Lustre® file system is an open-source, parallel file system that supports many requirements of leadership class HPC simulation environments. Whether you’re a member of our diverse development community or considering the Lustre file system as a parallel file system solution, these pages offer a wealth of resources and support to meet your needs. Hadn't heard of it.
- LtdJorge 4y agoIt's normally used for supercomputers
- james_cowling 4y agoWe designed and built the system almost completely ground-up, all the way down to the disk scheduler, but yeah we probably took the term OSD from Ceph.
- kmod 4y agoI think that's right
- james_cowling 4y ago(kmod was the founding engineer on the project and the guy who came up with the name!)
- dang 4y agoRelated: Optimizing Magic Pocket for cold storage - https://news.ycombinator.com/item?id=19841887 https://news.ycombinator.com/item?id=19841887 - May 2019 (13 comments) Dropbox Extending Magic Pocket with SMR Drive Deployment - https://news.ycombinator.com/item?id=17300661 https://news.ycombinator.com/item?id=17300661 - June 2018 (1 comment) Inside the Magic Pocket - https://news.ycombinator.com/item?id=11645536 https://news.ycombinator.com/item?id=11645536 - May 2016 (29 comments) Scaling to exabytes and beyond - https://news.ycombinator.com/item?id=11283064 https://news.ycombinator.com/item?id=11283064 - March 2016 (6 comments) Dropbox’s Exodus from the Amazon Cloud - https://news.ycombinator.com/item?id=11282948 https://news.ycombinator.com/item?id=11282948 - March 2016 (240 comments)
- throwaway2037 4y agoI'm confused by this part: The system can run on any HDDs, but primarily runs on Shingled Magnetic Recording disks. SMR is just one of the latest HDD technologies. Wiki tells me that is is about 10 years old now. I cannot believe the implementation of the storage hardware is going to have any affect upon how the software service runs. What am I missing? This sounds like a bit of "tech mumbo jumbo" on the lead-in. To be clear: I am not doubting the impressiveness of this system! The conclusion is also pithy. I like it. Managing Magic Pocket, four key lessons have helped us maintain the system: Protect and verify Okay to move slow at scale Keep things simple Prepare for the worst
- throwaway2037 4y agoWoah, I just found this on the SMR Wiki page: https://en.wikipedia.org/wiki/Shingled_magnetic_recording https://en.wikipedia.org/wiki/Shingled_magnetic_recording The higher density of SMR drives, combined with its random-read nature, fills a niche between the sequential-access tape storage and the random-access conventional hard drive storage. They are suited to storing data that are unlikely to be modified, but need to be read from any point efficiently. One example of the use case is Dropbox's Magic Storage system, which runs the on-disk extents in an append-only way. Device-managed SMR disks have also been marketed as "Archive HDDs" due to this property. Cool! I was probably wrong in my previous post: The hardware implementation may truly affect the software.
- edude03 4y agoSHR has high latency when you need to rewrite data on a shared "shingle" - so my guess is they designed the storage system to avoid those for better performance?
- usernew 4y agoIt's not mumbo jumbo at all. Please read the rest of that wiki article. This is not a regular HDD. Buy a few, build a RAID out of them, then try to rebuild a drive while the front-end is online. You'll probably get data corruption and everything will crash. It's an HDD technology that has to be combined with very specific type of logical volume management and protection workloads, and is very cheap at the tradeoff of these limitations. To build a large, fault tolerant storage system on top of this "just another HDD technology" as you call it, is not something you can do at home with your normal tools. They did it, and they saved lots of cost because of that. Do you ever walk into a meeting with an engineer SME talking about a topic which you had to look up on wiki, and because you don't understand what he's saying you dismiss it as "tech mumbo jumbo?" You will be very successful as middle-management at a large corporation.
- lastangryman 4y agoIs the diagram in the Zone section wrong? It looks like the Cell diagram below has been used by mistake. Super interested to understand this better but having a hard time following the article. Is the hash index replicated across regions/zones, or are clients responsible for routing thier requests to the correct zone?
- bastawhiz 4y agoYou're right, it is. I was confused as well.