From 3b328bf3e3e092676ae20410dc92e4b871570e95 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 23 Nov 2023 13:07:37 +0800 Subject: [PATCH 1/3] TiKV config: add evict-cache-on-memory-ratio, and memory Signed-off-by: Aolin --- tikv-configuration-file.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 63e7ae920cdbc..5b04fbef67cbd 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -784,13 +784,13 @@ Configuration items related to Raftstore. ### `region-compact-min-redundant-rows` New in v7.1.0 -+ 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` New in v7.1.0 -+ 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` @@ -1023,6 +1023,13 @@ Configuration items related to Raftstore. + Minimum value: `0` + Unit: second +### `evict-cache-on-memory-ratio` New in v7.5.0 + ++ 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. @@ -2332,3 +2339,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 New in v7.5.0 + +### `enable-heap-profiling` New in v7.5.0 + ++ Controls whether to enable Heap Profiling to track the memory usage of TiKV ++ Default value: `true` + +### `profiling-sample-per-bytes` New in v7.5.0 + ++ Specifies the amount of data sampled by Heap Profiling each time, rounding up to the nearest power of 2 ++ Default value: 512KB From 0875a729d4f99c4884d7f331e3c571f9e6b5b390 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 23 Nov 2023 13:11:01 +0800 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: xixirangrang --- tikv-configuration-file.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 5b04fbef67cbd..989844bc93681 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -1027,7 +1027,7 @@ Configuration items related to Raftstore. + 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` ++ Default value: `0.1` + Minimum value: `0` ## coprocessor @@ -2344,10 +2344,10 @@ Configuration items related to [Load Base Split](/configure-load-base-split.md). ### `enable-heap-profiling` New in v7.5.0 -+ Controls whether to enable Heap Profiling to track the memory usage of TiKV ++ Controls whether to enable Heap Profiling to track the memory usage of TiKV. + Default value: `true` ### `profiling-sample-per-bytes` New in v7.5.0 -+ Specifies the amount of data sampled by Heap Profiling each time, rounding up to the nearest power of 2 ++ Specifies the amount of data sampled by Heap Profiling each time, rounding up to the nearest power of 2. + Default value: 512KB From 90c2243217e32e055ff1adb5e5a189552f9366c7 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 23 Nov 2023 13:16:08 +0800 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: xixirangrang --- tikv-configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 989844bc93681..2c0ed5f90a41d 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -2350,4 +2350,4 @@ Configuration items related to [Load Base Split](/configure-load-base-split.md). ### `profiling-sample-per-bytes` New in v7.5.0 + Specifies the amount of data sampled by Heap Profiling each time, rounding up to the nearest power of 2. -+ Default value: 512KB ++ Default value: `512KB`