Update "standby switchover" command reference

This commit is contained in:
Ian Barwick
2017-08-28 11:58:10 +09:00
parent 4b2fb7d15b
commit 3b28cfa70e

View File

@@ -321,6 +321,7 @@ The following replication settings may need to be adjusted:
# #
# wal_keep_segments = 5000 # wal_keep_segments = 5000
Performing a switchover with repmgr Performing a switchover with repmgr
----------------------------------- -----------------------------------
@@ -791,11 +792,19 @@ The following commands are available:
* `standby switchover` * `standby switchover`
... Promotes a standby to primary and demotes the existing primary to a standby.
This command must be run on the standby to be promoted, and requires a
passwordless SSH connection to the current primary.
If other standbys (siblings of the promotion candidate) are connected If other standbys (siblings of the promotion candidate) are connected
to the demotion candidate, if `--siblings-follow` is specified `repmgr` to the demotion candidate, `repmgr` can instruct these to follow the
can instruct these to follow the new primary. . new primary if the option `--siblings-follow` is specified.
Execute with the `--dry-run` option to test the switchover as far as
possible without actually changing the status of either node.
`repmgrd` should not be active on any nodes while a switchover is being
carried out. This restriction may be lifted in a later version.
* `node status` * `node status`