mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Update help output with switchover-related commands
This commit is contained in:
5
repmgr.c
5
repmgr.c
@@ -2249,7 +2249,7 @@ do_standby_follow(void)
|
|||||||
* which will be unable to catch up with the primary
|
* which will be unable to catch up with the primary
|
||||||
*
|
*
|
||||||
* TODO:
|
* TODO:
|
||||||
* - update help, docs
|
* - update docs
|
||||||
* - make connection test timeouts/intervals configurable (see below)
|
* - make connection test timeouts/intervals configurable (see below)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -3196,6 +3196,8 @@ help(void)
|
|||||||
" wal_keep_segments (default: %s)\n"), DEFAULT_WAL_KEEP_SEGMENTS);
|
" wal_keep_segments (default: %s)\n"), DEFAULT_WAL_KEEP_SEGMENTS);
|
||||||
printf(_(" -W, --wait (standby follow) wait for a master to appear\n"));
|
printf(_(" -W, --wait (standby follow) wait for a master to appear\n"));
|
||||||
printf(_(" -m, --mode (standby switchover) shutdown mode (smart|fast|immediate)\n"));
|
printf(_(" -m, --mode (standby switchover) shutdown mode (smart|fast|immediate)\n"));
|
||||||
|
printf(_(" -C, --remote-config-file (standby switchover) path to the configuration file on\n" \
|
||||||
|
" the current master\n"));
|
||||||
printf(_(" -k, --keep-history=VALUE (cluster cleanup) retain indicated number of days of history\n"));
|
printf(_(" -k, --keep-history=VALUE (cluster cleanup) retain indicated number of days of history\n"));
|
||||||
|
|
||||||
|
|
||||||
@@ -3215,6 +3217,7 @@ help(void)
|
|||||||
printf(_(" standby unregister - unregisters a standby in a cluster\n"));
|
printf(_(" standby unregister - unregisters a standby in a cluster\n"));
|
||||||
printf(_(" standby promote - promotes a specific standby to master\n"));
|
printf(_(" standby promote - promotes a specific standby to master\n"));
|
||||||
printf(_(" standby follow - makes standby follow a new master\n"));
|
printf(_(" standby follow - makes standby follow a new master\n"));
|
||||||
|
printf(_(" standby switchover - switch this standby with the current master\n"));
|
||||||
printf(_(" witness create - creates a new witness server\n"));
|
printf(_(" witness create - creates a new witness server\n"));
|
||||||
printf(_(" cluster show - displays information about cluster nodes\n"));
|
printf(_(" cluster show - displays information about cluster nodes\n"));
|
||||||
printf(_(" cluster cleanup - prunes or truncates monitoring history\n" \
|
printf(_(" cluster cleanup - prunes or truncates monitoring history\n" \
|
||||||
|
|||||||
Reference in New Issue
Block a user