<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 31, 2019 at 7:50 AM Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>> Thanks. I confirmed that pgpool at proxy2 and proxy3 did not detect<br>
>> the failure of postgres1. So watchdog at proxy1 did not get<br>
>> consensus. I suspect the way you stopped postgres was something special<br>
>> (not ordinary shutdown by using pg_ctl). Can you elaborate how you<br>
>> stopped postgres1?<br>
>><br>
> <br>
> I used "service postgresql stop" on postgres1. And then "start" to start it<br>
> again.<br>
> <br>
> So I have one question: why you ask me this? Does this mean that if<br>
> PostgreSQL would be killed in an "abnormal way" (like kernel hang, memory<br>
> or something else not made by user) the failover does not work?<br>
<br>
No, in these cases Pgpool-II's health check should detect the<br>
failure. I thought about the case a firewall was tweaked to block<br>
access from pgoool/proxy1 to PostgreSQL.<br>
<br>
Anyway, the debug log and "show pool_nodes" results look pretty<br>
strange since pgpool/proxy2 and pgpool/proxy3 thinks that PostgreSQL<br>
is healthy, while pgpool/proxy1 does not. For now I have no idea what<br>
could cause this situation.<br>
<br></blockquote><div> </div><div>Apparently from the log you shared, suggests that the health check never detected the PG server failure</div><div>While the "failed to connect to PostgreS.." errors appearing on the standby pgpool nodes are due to the</div><div>connection failure of the replication log checker that does not trigger a failover.</div><div><div><br></div><div>Can you share the pgpool.conf files for all nodes. My suspicion is that the health-check timeout values</div><div>are somewhat on the higher side, So that's why the  health-check might have missed the unavailability of</div><div>PG server.</div><div><br></div><div>Best Regards</div><div>Muhammad Usama</div><div><br></div><div></div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div></div>