From b8fa71257a1d75afc3944180a5d846f08ca2e71e Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 2 May 2019 12:00:02 +0900 Subject: [PATCH] doc: update "repmgr standby promote" documentation Document new "--siblings-follow" option. --- doc/repmgr-standby-promote.sgml | 63 +++++++++++++++++++++++++++++---- 1 file changed, 56 insertions(+), 7 deletions(-) diff --git a/doc/repmgr-standby-promote.sgml b/doc/repmgr-standby-promote.sgml index 4b31cc39..a68a4dda 100644 --- a/doc/repmgr-standby-promote.sgml +++ b/doc/repmgr-standby-promote.sgml @@ -17,18 +17,49 @@ Promotes a standby to a primary if the current primary has failed. This command requires a valid repmgr.conf file for the standby, either - specified explicitly with -f/--config-file or located in a + specified explicitly with -f/--config-file or located in a default location; no additional arguments are required. + + + If &repmgrd; is active, you must execute + repmgr daemon pause + to temporarily disable &repmgrd; while making any changes + to the replication cluster. + + + If the standby promotion succeeds, the server will not need to be - restarted. However any other standbys will need to follow the new server, - by using ; if &repmgrd; - is active, it will handle this automatically. + restarted. However any other standbys will need to follow the new primary, + and will need to be restarted to do this. - Note that &repmgr; will wait for up to promote_check_timeout seconds - (default: 60 seconds) to verify that the standby has been promoted, and will + Beginning with repmgr 4.4, + the option can be used to have + all other standbys follow the new primary. + + + + + If using &repmgrd;, when invoking + repmgr standby promote (either directly via + the , or in a script called + via ), + must not be included as a + command line option for repmgr standby promote. + + + + + In repmgr 4.3 and earlier, + repmgr standby follow + must be executed on each standby individually. + + + + &repmgr; will wait for up to promote_check_timeout seconds + (default: 60) to verify that the standby has been promoted, and will check the promotion every promote_check_interval seconds (default: 1 second). Both values can be defined in repmgr.conf. @@ -72,13 +103,31 @@ Options + - Check if this node can be promoted, but don't carry out the promotion + Check if this node can be promoted, but don't carry out the promotion. + + + + + + Have all sibling nodes (nodes formerly attached to the same upstream + node as the promotion candidate) follow this node after it has been promoted. + + + + Do not provide this option when configuring + &repmgrd;'s . + + + + +