Teach witness repmgrd to deal with the absence of a primary

Previously it would refuse to start if the primary was not reachable,
the thinking being that it's pointless trying to monitor an incomplete
cluster.

However following an aborted failover situation, repmgrd will restart
monitoring and on the witness server, this will lead to it aborting
itself due to to continuing absence of primary.

To resolve this, witness repmgrd will now start monitoring in degraded
mode if no primary is found in the hope a primary will reappear at
some point.
This commit is contained in:
Ian Barwick
2018-11-29 11:56:09 +09:00
parent bdcc4d9e83
commit a6a2be2239
3 changed files with 73 additions and 40 deletions

View File

@@ -2,6 +2,7 @@
repmgr: add sanity check for correct extension version (Ian)
repmgr: ensure "witness register --dry-run" does not attempt to read node
tables if repmgr extension not installed; GitHub #513 (Ian)
repmgrd: improve witness monitoring when primary node not available (Ian)
4.2 2018-10-24
repmgr: add parameter "shutdown_check_timeout" for use by "standby switchover";