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

rocksdb.*cf: supply descriptions on ttl and periodic-compaction-seconds. #14312

Merged
merged 6 commits into from
Jun 28, 2023
Merged
Changes from 2 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
12 changes: 12 additions & 0 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,18 @@ rocksdb defaultcf、rocksdb writecf 和 rocksdb lockcf 相关的配置项。
- `5`:适用于 TiKV v6.1 及以上版本。全量和分区 filter 采用一种具有不同模式的、更快、更准确的 Bloom filter 实现。
+ 默认值:`2`

### `ttl` <span class="version-mark">从 v7.2.0 版本开始引入</span>
LykxSassinator marked this conversation as resolved.
Show resolved Hide resolved

+ 设置 SST 文件被自动选中执行 compaction 的 TTL 时间。更新时间超过 TTL 的 SST 文件将被选中并进行 compaction。在执行 compaction 时,这些 SST 文件通常以级联的方式进行压缩,以便被压缩到最底层或最底层的文件中。
LykxSassinator marked this conversation as resolved.
Show resolved Hide resolved
+ 默认值:30d
LykxSassinator marked this conversation as resolved.
Show resolved Hide resolved
+ 单位:s(second)|h(hour)|d(day)

### `periodic-compaction-seconds` <span class="version-mark">从 v7.2.0 版本开始引入</span>
LykxSassinator marked this conversation as resolved.
Show resolved Hide resolved

+ 设置周期性 compaction 的时间,超过此值的 SST 文件将被选中进行 compaction,并重新写入到与它们之前所在的同一层级.
qiancai marked this conversation as resolved.
Show resolved Hide resolved
LykxSassinator marked this conversation as resolved.
Show resolved Hide resolved
+ 默认值:30d
LykxSassinator marked this conversation as resolved.
Show resolved Hide resolved
+ 单位:s(second)|h(hour)|d(day)

## rocksdb.defaultcf.titan

rocksdb defaultcf titan 相关的配置项。
Expand Down