Does a TiKV instance's data storage correspond to a single RocksDB?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 一个TiKV实例的数据存储对应的是一个RocksDB吗?

| username: lh412

Does the data storage of a TiKV instance correspond to a single RocksDB? Thanks to all the experts.

| username: Tank001 | Original post link

Metadata takes up one, data takes up one.

| username: 箱子NvN | Original post link

There should be two.
image
One is rocksdb raft where the data first becomes a log stored in rocksdb raft.
Then there is rocksdb kv, the actual place where data is stored.
For more details, you can refer to this course: Core Principles and Architecture of TiDB Database [TiDB v6] Lesson 03 TiKV.