Beyond the Delete Button: Scaling Garbage Collection on Apache Ozone
summary
Tracks OM SCM and DN to remove a billion-object backlog: a multithreaded BFS directory walker plus batching and RocksDB delete range reduces tombstones; SCM adds transaction IDs, per-node queue caps and retry-from-last-ID; DNs switch to fine-grained short locks and duplicate-transaction filtering. Results: directory deletes jump from 6,000 to ~200,000/min, OM 2.5x, SCM 5x, DN 4x (20k blocks/DN/min → ~800k/min on 400 DN), and Grafana + Ozone Recon shows real-time backlogs.
AI-written summary · about
chapters (14)
- 0:00Introduction and presenters
- 2:19Garbage collection challenges in Ozone
- 7:39Ozone architecture and deletion pipeline
- 10:48Production bottlenecks at scale
- 11:10Ozone Manager optimizations
- 14:22Measured improvements in OM
- 15:04Storage Container Manager optimizations
- 17:54SCM improvements and results
- 18:57Data Node optimizations
- 20:46Snapshot deletion and observability
- 23:16Metrics and monitoring tools
- 23:39Summary of results
- 24:00Key lessons learned
- 25:44References and Q&A
