Learn how to configure RocksDB engine in TiKV.
TiKV uses RocksDB internally to store Raft logs and key-value pairs.
TiKV creates two RocksDB instances on each Node:
rocksdbinstance that stores key-value data.
raftdbthat stores Raft logs and has a single column family called
rocksdb instance has three column families:
|Stores actual KV pairs for TiKV|
|Stores transaction lock|
|Stores transactions’ commit and rollback record|
RocksDB can be configured on each column family. Here’s an example:
[rocksdb.writecf] whole-key-filtering = false
You can find all the RocksDB configuration options here.