Optimizing RocksDB in TiKV (Part 1) – The Battle Against the DB Mutex
medium.com·11h·
Discuss: Hacker News
Flag this post

4 min readJust now

When we started building TiKV nine years ago, we chose RocksDB as our storage engine. And for good reasons — it’s a highly efficient, battle-tested key-value store with a flexible LSM-tree design that’s proven at scale. It gave us a great foundation to build a distributed transactional key-value database on.

But as our users’ data kept growing — terabytes upon terabytes, millions of SST files — we began to encounter the darker side of RocksDB. Performance bottlenecks surfaced, especially under high concurrency and large-scale deployments. Over time, we developed numerous optimizations for RocksDB to make it production-ready for TiKV’s scale.

Now, after nearly a decade, it feels like the right moment to look back and document some of these efforts — not o…

Similar Posts

Loading similar posts...