<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 &lt;<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>&gt; 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">&gt;&gt; Thanks. I confirmed that pgpool at proxy2 and proxy3 did not detect<br>
&gt;&gt; the failure of postgres1. So watchdog at proxy1 did not get<br>
&gt;&gt; consensus. I suspect the way you stopped postgres was something special<br>
&gt;&gt; (not ordinary shutdown by using pg_ctl). Can you elaborate how you<br>
&gt;&gt; stopped postgres1?<br>
&gt;&gt;<br>
&gt; <br>
&gt; I used &quot;service postgresql stop&quot; on postgres1. And then &quot;start&quot; to start it<br>
&gt; again.<br>
&gt; <br>
&gt; So I have one question: why you ask me this? Does this mean that if<br>
&gt; PostgreSQL would be killed in an &quot;abnormal way&quot; (like kernel hang, memory<br>
&gt; or something else not made by user) the failover does not work?<br>
<br>
No, in these cases Pgpool-II&#39;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 &quot;show pool_nodes&quot; 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 &quot;failed to connect to PostgreS..&quot; 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&#39;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>