[pgpool-committers: 2869] pgpool: master/coordinator watchdog node sends out the periodic beacon

Muhammad Usama m.usama at gmail.com
Mon Dec 14 16:19:24 JST 2015

master/coordinator watchdog node sends out the periodic beacon message to all
standby node. So when a standby node does not receive the beacon message from
a master watchdog node that would mean either the standby is disconnected from
the cluster or master node is dead. Although this scenario falls in the lifecheck
process domain to detect the dead nodes, but the watchdog process itself should
take the necessary action when this situation happens and lifecheck process
failed to detect that.
In this commit standby node  sends the request for info message to master node
if it does not receive any message from master node since beacon interval
seconds, and if the node does not hear from the master node for 2 * beacon
interval time, the standby node leaves the standby state and re-joins the cluster.



Modified Files
src/include/watchdog/watchdog.h |    5 +-
src/watchdog/watchdog.c         |  106 ++++++++++++++++++++++++++++++---------
src/watchdog/wd_json_data.c     |    4 +-
3 files changed, 88 insertions(+), 27 deletions(-)

More information about the pgpool-committers mailing list