From 822c634d18b87142ad6aea31edc0f3c463e9e117 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 aaf480d6fbd55..2b740ba030cc4 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -729,7 +729,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 1ad67122351b0309e1329f61070adb8c2e7566e5 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 2b740ba030cc4..54472b834b45c 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -729,7 +729,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 0a47e99f31eeb2a4312dfd75bd3c87a93de50aea 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 54472b834b45c..69cb80574ea70 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -729,7 +729,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 dbd7f9b5f7f5714a504fe9b4c87fead97a2fdff8 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 69cb80574ea70..023bccdc6e574 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -729,7 +729,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`