From eb34999f8039ff64e2d863553ce3dda48a6a0e4a Mon Sep 17 00:00:00 2001 From: King-Dylan <702299521@qq.com> Date: Thu, 23 Oct 2025 15:36:01 -0700 Subject: [PATCH 1/4] The calculation of raft-log-gc-count-limit should be based on 1 KiB --- 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 cf6fcae8132c8..5d6576a1fa7a2 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -734,7 +734,7 @@ Configuration items related to Raftstore. ### `raft-log-gc-count-limit` + The hard limit on the allowable number of residual Raft logs -+ Default value: the log number that can be accommodated in the 3/4 Region size (calculated as 1MiB for each log) ++ Default value: the log number that can be accommodated in the 3/4 Region size (calculated as 1KiB for each log) + Minimum value: `0` ### `raft-log-gc-size-limit` From 2d4937307317c71ef89194050f4b0558bf915bef Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Mon, 3 Nov 2025 11:33:13 +0800 Subject: [PATCH 2/4] Update tikv-configuration-file.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- 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 5d6576a1fa7a2..d6b47b17f1f7d 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -734,7 +734,7 @@ Configuration items related to Raftstore. ### `raft-log-gc-count-limit` + The hard limit on the allowable number of residual Raft logs -+ Default value: the log number that can be accommodated in the 3/4 Region size (calculated as 1KiB for each log) ++ Default value: the number of logs that can fit into 3/4 of the Region size, calculated assuming each log is 1KiB + Minimum value: `0` ### `raft-log-gc-size-limit` From 3bd6c95265304d46422131d29c7ffdbc83edea58 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Mon, 3 Nov 2025 12:46:43 +0800 Subject: [PATCH 3/4] Update tikv-configuration-file.md --- 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 d6b47b17f1f7d..0a80b3ff2ad4d 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -734,7 +734,7 @@ Configuration items related to Raftstore. ### `raft-log-gc-count-limit` + The hard limit on the allowable number of residual Raft logs -+ Default value: the number of logs that can fit into 3/4 of the Region size, calculated assuming each log is 1KiB ++ Default value: the number of logs that can fit into 3/4 of the Region size, calculated assuming each log is 1 KiB + Minimum value: `0` ### `raft-log-gc-size-limit` From 46aab19efda708709f9164638872affa63951c7b Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Mon, 3 Nov 2025 13:44:18 +0800 Subject: [PATCH 4/4] Update tikv-configuration-file.md Co-authored-by: Aolin --- 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 0a80b3ff2ad4d..8ddd8eaf370e1 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -734,7 +734,7 @@ Configuration items related to Raftstore. ### `raft-log-gc-count-limit` + The hard limit on the allowable number of residual Raft logs -+ Default value: the number of logs that can fit into 3/4 of the Region size, calculated assuming each log is 1 KiB ++ Default value: the number of logs that can fit into three-fourths of the Region size, calculated assuming each log is 1 KiB + Minimum value: `0` ### `raft-log-gc-size-limit`