LSM-Tree Write Amplification and Compaction Stalls: Why Heavy Ingestion Freezes RocksDB and Cassandra
Log-Structured Merge-trees provide lightning-fast sequential writes by buffering mutations in memory before flushing SSTables to disk. But under sustained ingestion, background compaction falls behind, triggering write stalls that freeze application throughput. How leveled compaction, write amplification, and compaction debt interact in production.