Skip to content

Commit

Permalink
TiKV config: add evict-cache-on-memory-ratio, and memory (#15430)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt authored Nov 27, 2023
1 parent 7b67cc8 commit be6851a
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -785,13 +785,13 @@ Configuration items related to Raftstore.

### `region-compact-min-redundant-rows` <span class="version-mark">New in v7.1.0</span>

+ The number of redundant MVCC rows required to trigger RocksDB compaction. This configuration only takes effect for Partitioned Raft KV (`storage.engine="partitioned-raft-kv"`).
+ The number of redundant MVCC rows required to trigger RocksDB compaction.
+ Default value: `50000`
+ Minimum value: `0`

### `region-compact-redundant-rows-percent` <span class="version-mark">New in v7.1.0</span>

+ The percentage of redundant MVCC rows required to trigger RocksDB compaction. This configuration only takes effect for Partitioned Raft KV (`storage.engine="partitioned-raft-kv"`).
+ The percentage of redundant MVCC rows required to trigger RocksDB compaction.
+ Default value: `20`
+ Minimum value: `1`
+ Maximum value: `100`
Expand Down Expand Up @@ -1024,6 +1024,13 @@ Configuration items related to Raftstore.
+ Minimum value: `0`
+ Unit: second

### `evict-cache-on-memory-ratio` <span class="version-mark">New in v7.5.0</span>

+ When the memory usage of TiKV exceeds 90% of the system available memory, and the memory occupied by Raft entry cache exceeds the used memory * `evict-cache-on-memory-ratio`, TiKV evicts the Raft entry cache.
+ If this value is set to `0`, it means that this feature is disabled.
+ Default value: `0.1`
+ Minimum value: `0`

## coprocessor

Configuration items related to Coprocessor.
Expand Down Expand Up @@ -2333,3 +2340,15 @@ Configuration items related to [Load Base Split](/configure-load-base-split.md).

+ `0.25` when [`region-split-size`](#region-split-size) is less than 4 GB.
+ `0.75` when [`region-split-size`](#region-split-size) is greater than or equal to 4 GB.

## memory <span class="version-mark">New in v7.5.0</span>

### `enable-heap-profiling` <span class="version-mark">New in v7.5.0</span>

+ Controls whether to enable Heap Profiling to track the memory usage of TiKV.
+ Default value: `true`

### `profiling-sample-per-bytes` <span class="version-mark">New in v7.5.0</span>

+ Specifies the amount of data sampled by Heap Profiling each time, rounding up to the nearest power of 2.
+ Default value: `512KB`

0 comments on commit be6851a

Please sign in to comment.