From 4ccd2e443fce17e68e7bb19acfa05c915f47693e 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 8a6244b73cb30..5ae21baf4100e 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -785,13 +785,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` @@ -1024,6 +1024,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. @@ -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 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 bb42f813e877180009519c59bbb252d1b6d8d12a 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 5ae21baf4100e..7e962a732f2e7 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -1028,7 +1028,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 @@ -2345,10 +2345,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 fe2f6e87bd7d745814876efc539697a29e0c98ba 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 7e962a732f2e7..0b88037815056 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -2351,4 +2351,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`