Skip to content

Commit 1ee718e

Browse files
authored
v8.5.5: add config for graceful shutdown (#21173)
1 parent 437a5df commit 1ee718e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tikv-configuration-file.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,14 @@ TiKV 配置文件比命令行参数支持更多的选项。你可以在 [etc/con
208208
+ 默认值:3s
209209
+ 最小值:1s
210210

211+
### `graceful-shutdown-timeout` <span class="version-mark">从 v8.5.5 版本开始引入</span>
212+
213+
+ TiKV 优雅关闭 (graceful shutdown) 的超时时长。
214+
+ 当该值大于 `0s` 时,如果关闭 TiKV 节点,TiKV 在该超时时间内会尽量将其上的 leader 副本转移到其他 TiKV 节点,然后再关闭。若达到该超时时间后仍有 leader 未完成转移,TiKV 将跳过剩余 leader 的转移,直接进入关闭流程。
215+
+ 当该值为 `0s` 时,表示不启用 TiKV 的 graceful shutdown 功能。
216+
+ 默认值:20s
217+
+ 最小值:0s
218+
211219
### `concurrent-send-snap-limit`
212220

213221
+ 同时发送 snapshot 的最大个数。

0 commit comments

Comments
 (0)