From 41ae3f002a952c38e91de776ba971a5ac533d5bd Mon Sep 17 00:00:00 2001 From: Pradeep Chhetri Date: Mon, 6 Nov 2023 23:18:34 +0800 Subject: [PATCH] Add docs for 4 letter command for yielding leadership in keeper cluster --- docs/en/guides/sre/keeper/index.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/en/guides/sre/keeper/index.md b/docs/en/guides/sre/keeper/index.md index e2267013bc9..efd6a56fb01 100644 --- a/docs/en/guides/sre/keeper/index.md +++ b/docs/en/guides/sre/keeper/index.md @@ -66,7 +66,7 @@ Internal coordination settings are located in the `..` section and contain servers description. @@ -135,7 +135,7 @@ clickhouse keeper --config /etc/your_path_to_config/config.xml ClickHouse Keeper also provides 4lw commands which are almost the same with Zookeeper. Each command is composed of four letters such as `mntr`, `stat` etc. There are some more interesting commands: `stat` gives some general information about the server and connected clients, while `srvr` and `cons` give extended details on server and connections respectively. -The 4lw commands has a white list configuration `four_letter_word_white_list` which has default value `conf,cons,crst,envi,ruok,srst,srvr,stat,wchs,dirs,mntr,isro,rcvr,apiv,csnp,lgif,rqld`. +The 4lw commands has a white list configuration `four_letter_word_white_list` which has default value `conf,cons,crst,envi,ruok,srst,srvr,stat,wchs,dirs,mntr,isro,rcvr,apiv,csnp,lgif,rqld,ydld`. You can issue the commands to ClickHouse Keeper via telnet or nc, at the client port. @@ -345,6 +345,12 @@ Sent leadership request to leader. - `ftfl`: Lists all feature flags and whether they are enabled for the Keeper instance. +- `ydld`: Request to yield leadership and become follower. If the server receiving the request is leader, it will pause write operations first, wait until the successor (current leader can never be successor) finishes the catch-up of the latest log, and then resign. The successor will be chosen automatically. Return `Sent yield leadership request to leader.` if request sent or `Failed to send yield leadership request to leader.` if request not sent. Note that if node is already follower the outcome is same as the request is sent. + +``` +Sent yield leadership request to leader. +``` + ``` filtered_list 1 multi_read 1