mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
Update "standby switchover" command reference
This commit is contained in:
15
README.md
15
README.md
@@ -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`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user