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. #18981

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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 @@ -1933,6 +1933,20 @@ Configuration items related to Raft Engine.
+ If there are multiple disks on your machine, it is recommended to store the data of Raft Engine on a different disk to improve TiKV performance.
+ Default value: `""`

### `spill-dir` <span class="version-mark">New in v8.4.0</span>

+ The auxiliary directory for storing raft log files. When the disk where the `dir` specified is full, new raft logs will be stored under this directory. If this directory does not exist after configuration, it will be created when TiKV is started.
+ If this configuration is not set, it means that the directory does not exist.

> **Note:**
>
> - This configuration is only valid when the dir and spill-dir of the Raft Engine are specified as different disk drives.
> - After enabling this feature, if you want to disable it, you need to perform the following operations before restarting TiKV:
hfxsd marked this conversation as resolved.
Show resolved Hide resolved
> - Shut down TiKV;
> - Copy all raft Logs in this directory to the directory;
> - Remove this configuration from the TiKV configuration file;
> - Restart TiKV;
LykxSassinator marked this conversation as resolved.
Show resolved Hide resolved

### `batch-compression-threshold`

+ Specifies the threshold size of a log batch. A log batch larger than this configuration is compressed. If you set this configuration item to `0`, compression is disabled.
Expand Down
Loading