From 75379eab2e6ff085149812686cfcac2fdcff81b0 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 14 Jan 2019 13:53:52 +0900 Subject: [PATCH] doc: update "repmgr standby follow" documentation Note corner case where repmgr will not be able to check for timeline divergence. --- doc/repmgr-standby-follow.sgml | 38 +++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/doc/repmgr-standby-follow.sgml b/doc/repmgr-standby-follow.sgml index fba841e1..c1b94084 100644 --- a/doc/repmgr-standby-follow.sgml +++ b/doc/repmgr-standby-follow.sgml @@ -16,7 +16,12 @@ 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.