Benchmarking RocksDB’s Three Amplification Factors

If you've read anything about RocksDB, LevelDB, Cassandra, or any other LSM-tree database, you've met the three amplification factors: Space amplification — bytes on disk ÷ bytes of live data Read amplification — I/O operations per logical read Write amplification — bytes written to disk ÷ bytes your application handed over They're always presented the same way: three tidy definitions, a sentence about how tuning is a tradeoff between them, and a link to the official tuning guide. Which says, memorably: "Unfortunately, configuring RocksDB optimally is not trivial. Even we as RocksDB developers don't fully understand the effect of each configuration change. If you want to fully optimize
…