Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raft-engine: release spill-dir feature. #18690

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -1936,6 +1936,20 @@ Raft Engine 相关的配置项。
+ 如果你的机器上有多个磁盘,建议将 Raft Engine 的数据存储在单独的磁盘上,以提高 TiKV 性能。
+ 默认值:`""`

### `spill-dir` <span class="version-mark">从 v8.4.0 版本开始引入</span>

+ 存储 Raft 日志文件的辅助目录,当 `dir` 目录所在盘数据写满后,新的 Raft 日志将存储在该目录下。如果该目录配置后不存在,则在启动 TiKV 时创建该目录。
+ 如果未设置此配置,则表示不启用辅助目录。

> **注意:**
>
> - 该配置仅在 Raft Engine 的 `dir` 和 `spill-dir` 分别指定为**不同盘符**时才有效。
> - 在配置该功能后,若想要关闭该功能,你需要在重启 TiKV **之前**执行如下操作,否则将**无法启动** TiKV:
> 1. 关闭 TiKV。
> 2. 将 `spill-dir` 目录下的所有 Raft Log 复制到 [`dir`](/tikv-configuration-file.md#dir) 目录下。
> 3. 从 TiKV 配置文件中删除该配置。
> 4. 重启 TiKV。

### `batch-compression-threshold`

+ 指定日志批处理的阈值大小。大于此配置的日志批次将被压缩。如果将此配置项设置为 `0`,则禁用压缩。
Expand Down