Skip to content
Merged
Changes from 4 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
17 changes: 17 additions & 0 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -2375,6 +2375,23 @@ Raft Engine 相关的配置项。
+ 控制是否强制对 RocksDB 最底层文件进行 compaction。
+ 默认值:`true`

### `mvcc-read-aware-enabled` <span class="version-mark">从 v8.5.6 和 v9.0.0 版本开始引入</span>

+ 控制是否启用 MVCC-read-aware compaction。启用后,TiKV 会跟踪读取请求期间扫描的 MVCC 版本数量,并利用这些信息优先对 MVCC 读取放大率高的 Region 进行 compaction。这可以降低热点 Region 在扫描过程中遇到大量陈旧版本时产生的读取延迟。
Comment thread
hfxsd marked this conversation as resolved.
Outdated
+ Default value: `false`
Comment thread
hfxsd marked this conversation as resolved.
Outdated

### `mvcc-scan-threshold` <span class="version-mark">从 v8.5.6 和 v9.0.0 版本开始引入</span>

+ 每次读取请求扫描的 MVCC 版本数量的最小值,用于将 Region 标记为 compaction 候选。此配置项仅在 [`mvcc-read-aware-enabled`](#mvcc-read-aware-enabled-从-v856-和-v900-版本开始引入) 设置为 `true` 时生效。
Comment thread
hfxsd marked this conversation as resolved.
Outdated
+ 默认值:`1000`
+ 最小值:`0`

### `mvcc-read-weight` <span class="version-mark">从 v8.5.6 和 v9.0.0 版本开始引入</span>

+ 在计算 Region 的压缩优先级分数时,对 MVCC 读取活动应用的权重乘数。较高的数值会提高 MVCC 读放大在整体评估中的权重,相对于其他压缩触发因素(例如墓碑密度 (Tombstone Density))占比更大。该配置项仅在 [`mvcc-read-aware-enabled`](#mvcc-read-aware-enabled-从-v856-和-v900-版本开始引入) 设置为 `true` 时生效。
Comment thread
hfxsd marked this conversation as resolved.
Outdated
Comment thread
hfxsd marked this conversation as resolved.
Outdated
+ 默认值:`3.0`
+ 最小值:`0.0`

Comment thread
hfxsd marked this conversation as resolved.
## backup

用于 BR 备份相关的配置项。
Expand Down
Loading