How many SST files are there in the storage directory for each region in KV?

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

Original topic: 每个region 在kv 的存储目录里有多少个SST文件?

| username: xiaohetao

I would like to inquire:
How many SST files are there in the storage directory of each region in KV?
What is the relationship between the size of each SST file and the size and shard of its corresponding region?
How can I identify which SST file corresponds to a specific shard of a specific region?

| username: xfworld | Original post link

Regions are divided based on min Key - max Key, and there is a logical mapping relationship between regions and SST files. The number of SST files is not directly related to regions.

However, SST files need to meet the binary search format, as shown below:

                                         file 1                                          file 2
                                      +----------+                                    +----------+
level 1:                              | 100, 200 |                                    | 300, 400 |
                                      +----------+                                    +----------+
           file 1     file 2      file 3      file 4       file 5       file 6       file 7       file 8
         +--------+ +--------+ +---------+ +----------+ +----------+ +----------+ +----------+ +----------+
level 2: | 40, 50 | | 60, 70 | | 95, 110 | | 150, 160 | | 210, 230 | | 290, 300 | | 310, 320 | | 410, 450 |
         +--------+ +--------+ +---------+ +----------+ +----------+ +----------+ +----------+ +----------+

Main references:

Previous responses:

During backup, it is provided in the form of metadata. You can refer to the following document:

| username: xiaohetao | Original post link

Thank you very much for your reply, teacher.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.