From f131c8c7d3a06d72e0b1f0eb7412367cec610918 Mon Sep 17 00:00:00 2001 From: hujiatao0 Date: Mon, 8 Dec 2025 13:21:31 +0800 Subject: [PATCH 1/3] add config for graceful shutdown Signed-off-by: hujiatao0 --- tikv-configuration-file.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 8ddd8eaf370e1..18b27b96dc6f3 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -197,6 +197,11 @@ This document only describes the parameters that are not included in command-lin + Default value: `"3s"` + Minimum value: `"1s"` +### `graceful-shutdown-timeout` ++ The timeout duration for graceful shutdown. If the timeout is reached and the leader transfer has not completed, the transfer will be skipped and the node will proceed directly to the shutdown process. A value of 0s disables graceful shutdown. ++ Default value: `"20s"` ++ Minimum value: `"0s"` + ### `concurrent-send-snap-limit` + The maximum number of snapshots sent at the same time From 36c7347b7acc58829441b0fd97e22ba78469904d Mon Sep 17 00:00:00 2001 From: hujiatao0 Date: Mon, 8 Dec 2025 14:10:08 +0800 Subject: [PATCH 2/3] format Signed-off-by: hujiatao0 --- tikv-configuration-file.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 18b27b96dc6f3..f42024e68c1f7 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -198,7 +198,8 @@ This document only describes the parameters that are not included in command-lin + Minimum value: `"1s"` ### `graceful-shutdown-timeout` -+ The timeout duration for graceful shutdown. If the timeout is reached and the leader transfer has not completed, the transfer will be skipped and the node will proceed directly to the shutdown process. A value of 0s disables graceful shutdown. + ++ Specifies the timeout for graceful shutdown. If the timeout is reached before the leader transfer completes, TiKV skips the transfer and proceeds directly to the shutdown process. To disable graceful shutdown, set the value to `0s`. + Default value: `"20s"` + Minimum value: `"0s"` From 43726702b5f1186c368f3feca319af1774a49473 Mon Sep 17 00:00:00 2001 From: hujiatao0 Date: Mon, 15 Dec 2025 17:03:42 +0800 Subject: [PATCH 3/3] some update Signed-off-by: hujiatao0 --- tikv-configuration-file.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index f42024e68c1f7..44f310f6fcdc4 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -199,7 +199,9 @@ This document only describes the parameters that are not included in command-lin ### `graceful-shutdown-timeout` -+ Specifies the timeout for graceful shutdown. If the timeout is reached before the leader transfer completes, TiKV skips the transfer and proceeds directly to the shutdown process. To disable graceful shutdown, set the value to `0s`. ++ Specifies the timeout duration for TiKV graceful shutdown. + + When this value is greater than `0s`, TiKV attempts to transfer all leaders on this node to other TiKV nodes within the specified timeout before shutting down. If there are still leaders that have not been transferred when the timeout is reached, TiKV skips the remaining leader transfers and proceeds directly to the shutdown process. + + When this value is `0s`, TiKV graceful shutdown is disabled. + Default value: `"20s"` + Minimum value: `"0s"`