Description
- Attaches the standby to a new upstream node. This command requires a valid
+ Attaches the standby ("follow candidate") to a new upstream node
+ ("follow target"). Typically this will be the primary, but this
+ command can also be used to attach the standby to another standby.
+
+
+ This command requires a valid
repmgr.conf file for the standby, either specified
explicitly with -f/--config-file or located in a
default location; no additional arguments are required.
@@ -85,14 +90,23 @@
- Check prerequisites but don't actually follow a new standby.
+ Check prerequisites but don't actually follow a new upstream node.
+
+
+ This will also verify whether the standby is capable of following the new upstream node.
- This does not guarantee the standby can follow the primary; in
- particular, whether the primary and standby timelines have diverged,
- can currently only be determined by actually attempting to
- attach the standby to the primary.
+ If a standby was turned into a primary by removing recovery.conf
+ (PostgreSQL 12 and later: standby.signal),
+ &repmgr; will not be able to determine whether that primary's timeline
+ has diverged from the timeline of the standby ("follow candidate").
+
+
+ We recommend always to use repmgr standby promote
+ to promote a standby to primary, as this will ensure that the new primary
+ will perform a timeline switch (making it practical to check for timeline divergence)
+ and also that &repmgr; metadata is updated correctly.
@@ -102,12 +116,16 @@
- Node ID of the new primary.
+ Node ID of the new upstream node ("follow target").
- This option is intended for use by repmgrd, when
- instructing standbys to follow the new primary. For more details
- see Automatic failover configuration.
+ If not provided, &repmgr; will attempt to follow the current primary node.
+
+
+ Note that when using repmgrd,
+ should always be configured;
+ see Automatic failover configuration
+ for details.