DropboxIlya Yakovlev,Andrew Cheung,Binoy Dash,Simran Jumani,Dmitriy Meyerzon,Mark Breitenbach,Ishan Mishra,Kazuaki Okumura,Mike White,Kevin Altschuler,Facundo Agriel
Improving storage efficiency in Magic Pocket, our immutable blob store
Summary
After introducing a direct erasure-coding service, Dropbox encountered severe storage fragmentation in its immutable blob store, Magic Pocket, due to a large number of under-filled volumes. Because their legacy compaction strategy was only designed to top off near-full volumes, the team created new multi-strategy compaction methods to aggressively consolidate sparse volumes. These approaches leverage dynamic programming and streaming pipelines to rapidly reclaim unused disk capacity at exabyte scale.
Takeaways
In immutable blob stores, deleted data is not freed immediately and requires active compaction to rewrite live blobs into new volumes and retire fragmented ones.
Traditional host-and-donor compaction (L1) works well in steady state but struggles when a system accumulates a long tail of severely under-filled volumes.
Dropbox introduced L2 (a dynamic programming packing algorithm) and L3 (a continuous streaming re-encoding pipeline) to consolidate sparse volumes two to three times faster than before.
Source and freshness
- Source
- dropbox.tech
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.