[pgpool-committers: 2911] pgpool: commit a suicide as soon an the network becomes unreachable

Muhammad Usama m.usama at gmail.com
Tue Jan 5 05:30:26 JST 2016


commit a suicide as soon an the network becomes unreachable

Once the cable on the system is unplugged or when the node gets isolated from the
cluster there is every likelihood that the backend healthcheck of the isolated node
start reporting the backend node failure and the pgpool-II proceeds to perform
the failover for all attached backend nodes. Since the pgpool-II is yet not
smart enough to figure out it is because of the network failure of its own
system and the backend nodes are not actually at fault, but are working properly.

So now when the network gets back the backend status of the node will be different
and incorrect from the other pgpool-II nodes in the cluster. So the ideal solution
for the situation is to make the pgpool-II main process aware of the network black out
and when the network recovers the pgpool-II asks the watchdog to sync again the state of
all configured backend nodes from the master pgpool-II node. But to implement this lot
of time is required, So until that time we are just opting for the easiest solution here
which is to commit a suicide as soon an the network becomes unreachable

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=62c444faf2cd2e0755af21548e84afd172528273

Modified Files
--------------
src/watchdog/watchdog.c | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list