The strage.reserve-space parameter does not meet expectations

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

Original topic: strage.reserve-space参数不符合预期

| username: Soysauce520

[Test Environment for TiDB]
[TiDB Version]
[Issue] The disk space for TiKV is relatively small, only 14GB. After installation, the size of the space_placeholder_file does not meet expectations. Could you please explain how this file is controlled?


| username: buddyyuan | Original post link

First, calculate max(capacity * 0.05, parameter 5G), then divide by 5.

| username: Soysauce520 | Original post link

Awesome, my tests indeed match. I’ll take another look at the production environment.

| username: TiDBer_小阿飞 | Original post link

\db: Stores business data;
\ import: Empty directory used for lightning data import;
\ last_tikv.toml: Configuration file automatically generated by TiKV, modification is prohibited;
\ raft: Stores raft data;
\ snap: Empty directory;
\ space_placeholder_file: Reserved space, can be deleted to free up space when the disk is full.
Related configuration parameter: reserve-space;

  • The temporary file name is space_placeholder_file, located in the storage.data-dir directory. When TiKV goes offline due to disk space exhaustion, restarting TiKV will automatically delete this temporary file and attempt to reclaim space.
    TiKV 配置文件描述 | PingCAP 文档中心
| username: dba远航 | Original post link

space_placeholder_file is equivalent to an emergency space.

| username: system | Original post link

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