Ian Barwick
d3776ad13e
repmgrd: consolidate some code
2017-07-19 15:28:25 +09:00
Ian Barwick
a7b7d86ecc
repmgrd: handle manual failover mode correctly
2017-07-19 14:01:01 +09:00
Ian Barwick
23e6440dfd
repmgrd: initiate primary monitoring when local node is promoted manually
2017-07-19 11:15:38 +09:00
Ian Barwick
9558d0d3b8
repmgrd: prevent promotion of sole candidate if priority set to zero
2017-07-19 09:38:32 +09:00
Ian Barwick
6e270b2faf
repmgrd: catch cases where more than one node has initiated voting
...
The node(s) with higher ID will "yield", leaving the decision making
up to the node with the lower ID.
This happens very rarely, usually when the random delay is close
enough on two or mode nodes that vote initiation is simultaneous.
2017-07-18 17:04:24 +09:00
Ian Barwick
48a0aa3bf7
repmgrd: improve failover handling
...
Make retry frequency/interval configurable as per streaming replication.
2017-07-17 14:56:52 +09:00
Ian Barwick
a56bb41891
Remove redundant fields from node record struct
2017-07-17 14:11:14 +09:00
Ian Barwick
0dcd479322
Store node status in node record struct
2017-07-17 13:50:17 +09:00
Ian Barwick
46acf75286
Fix usage of get_primary_node_record()
2017-07-17 12:12:59 +09:00
Ian Barwick
ec00202a31
Add configure option --with-bdr-only
...
Builds repmgr with only BDR functionality; other code is disabled
at critical points.
2017-07-16 17:18:34 +09:00
Ian Barwick
951c7dbd07
repmgrd: in BDR mode, have each repmgrd monitor each node
...
This will cover both the case when an entire node including
repmgrd goes down, and when one PostgreSQL instance goes down
but repmgrd is still up (in which case only one of the repmgrds
will handle the failover).
2017-07-14 15:01:18 +09:00
Ian Barwick
e3b3fb65f0
repmgrd: restrict BDR monitoring to two node setup
...
It's not safe to have more than two nodes with this kind of
"failover", so we don't need to select alternative nodes by
priority.
2017-07-14 12:56:11 +09:00
Ian Barwick
d77e8d4d22
repmgrd: split physical and BDR functionality into separate files
2017-07-13 17:21:29 +09:00