<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">Best regards,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">Vladyslav</span></div></div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 7, 2018, at 16:05, Muhammad Usama &lt;<a href="mailto:m.usama@gmail.com" class="">m.usama@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi<div class=""><br class=""></div><div class="">From the log snippet you shared it seems that the the failure was never detected by the other Pgpool-II node, Can you please share the pgpoo.conf files and log files for all Pgpool nodes.</div><div class=""><br class=""></div><div class="">Thanks</div><div class="">Best Regards</div><div class="">Muhammad Usama<br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, May 3, 2018 at 5:20 PM, Vlad G <span dir="ltr" class="">&lt;<a href="mailto:omenvlad@gmail.com" target="_blank" class="">omenvlad@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Guys,<br class="">
I have a cluster with Pgpool-II-pg96-3.7.3 and postgresql-9.6.<br class="">
(3 x pgpool and 3 x postgresql<br class="">
The same scheme as:<br class="">
<a href="http://www.pgpool.net/docs/latest/en/html/example-cluster.html" rel="noreferrer" target="_blank" class="">http://www.pgpool.net/docs/<wbr class="">latest/en/html/example-<wbr class="">cluster.html</a><br class="">
<br class="">
When master node of postgresql (pgpoolpsql-1) goes down the master node of pgpool (&nbsp; pgpool-1)&nbsp; does not get second vote from one of the standby pgpool nodes (pgpool-2 and pgpool-3). <br class="">
<br class="">
If I set:<br class="">
failover_require_consensus = off<br class="">
Everything works fine.<br class="">
<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24237: LOG:&nbsp; failed to connect to PostgreSQL server on "pgpoolpsql-1:5432", getsockopt() detected error "Connection refused"<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24237: LOG:&nbsp; received degenerate backend request for node_id: 0 from pid [24237]<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24217: LOG:&nbsp; new IPC connection received<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24217: LOG:&nbsp; watchdog received the failover command from local pgpool-II on IPC interface<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24217: LOG:&nbsp; watchdog is processing the failover command [DEGENERATE_BACKEND_REQUEST] received from local pgpool-II on IPC interface<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24217: LOG:&nbsp; failover requires the majority vote, waiting for consensus<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24217: DETAIL:&nbsp; failover request noted<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24217: LOG:&nbsp; failover command [DEGENERATE_BACKEND_REQUEST] request from pgpool-II node "pgpool-1:9999 Linux pgpool-1" is queued, waiting for the confirmation from other nodes<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24237: LOG:&nbsp; degenerate backend request for node_id: 0 from pid [24237], will be handled by watchdog, which is building consensus for request<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24237: FATAL:&nbsp; failed to create a backend connection<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24237: DETAIL:&nbsp; executing failover on backend<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24216: LOG:&nbsp; child process with pid: 24237 exits with status 256<br class="">
May 03 13:02:45 pgpool-1 pgpool[24216]: 2018-05-03 13:02:45: pid 24216: LOG:&nbsp; fork a new child process with pid: 24268<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24228: LOG:&nbsp; failed to connect to PostgreSQL server on "pgpoolpsql-1:5432", getsockopt() detected error "Connection refused"<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24228: LOG:&nbsp; received degenerate backend request for node_id: 0 from pid [24228]<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; new IPC connection received<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; watchdog received the failover command from local pgpool-II on IPC interface<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; watchdog is processing the failover command [DEGENERATE_BACKEND_REQUEST] received from local pgpool-II on IPC interface<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; Duplicate failover request from "pgpool-1:9999 Linux pgpool-1" node<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: DETAIL:&nbsp; request ignored<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; failover requires the majority vote, waiting for consensus<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: DETAIL:&nbsp; failover request noted<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24228: LOG:&nbsp; degenerate backend request for 1 node(s) from pid [24228], is changed to quarantine node request by watchdog<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24228: DETAIL:&nbsp; watchdog is taking time to build consensus<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24228: FATAL:&nbsp; failed to create a backend connection<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24228: DETAIL:&nbsp; executing failover on backend<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24216: LOG:&nbsp; Pgpool-II parent process has received failover request<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; new IPC connection received<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; received the failover indication from Pgpool-II on IPC interface<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; watchdog is informed of failover end by the main process<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24216: LOG:&nbsp; starting quarantine. shutdown host pgpoolpsql-1(5432)<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24216: LOG:&nbsp; Restart all children<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24216: LOG:&nbsp; failover: set new primary node: -1<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24216: LOG:&nbsp; failover: set new master node: 1<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24252: LOG:&nbsp; worker process received restart request<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; new IPC connection received<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; received the failover indication from Pgpool-II on IPC interface<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: 2018-05-03 13:02:46: pid 24217: LOG:&nbsp; watchdog is informed of failover start by the main process<br class="">
May 03 13:02:46 pgpool-1 pgpool[24216]: quarantine done. shutdown host pgpoolpsql-1(5432)2018-05-03 13:02:46: pid 24216: LOG:&nbsp; quarantine done. shutdown host pgpoolpsql-1(5432)<br class="">
May 03 13:02:47 pgpool-1 pgpool[24216]: 2018-05-03 13:02:47: pid 24251: LOG:&nbsp; restart request received in pcp child process<br class="">
May 03 13:02:47 pgpool-1 pgpool[24216]: 2018-05-03 13:02:47: pid 24216: LOG:&nbsp; PCP child 24251 exits with status 0 in failover()<br class="">
May 03 13:02:47 pgpool-1 pgpool[24216]: 2018-05-03 13:02:47: pid 24216: LOG:&nbsp; fork a new PCP child pid 24301 in failover()<br class="">
May 03 13:02:47 pgpool-1 pgpool[24216]: 2018-05-03 13:02:47: pid 24216: LOG:&nbsp; child process with pid: 24219 exits with status 0<br class="">
May 03 13:02:47 pgpool-1 pgpool[24216]: 2018-05-03 13:02:47: pid 24216: LOG:&nbsp; child process with pid: 24219 exited with success and will not be restarted<br class="">
May 03 13:02:47 pgpool-1 pgpool[24216]: 2018-05-03 13:02:47: pid 24216: LOG:&nbsp; child process with pid: 24220 exits with status 0<br class="">
May 03 13:02:47 pgpool-1 pgpool[24216]: 2018-05-03 13:02:47: pid 24216: LOG:&nbsp; child process with pid: 24220 exited with success and will not be restarted<br class="">
May 03 13:02:47 pgpool-1 pgpool[24216]: 2018-05-03 13:02:47: pid 24216: LOG:&nbsp; child process with pid: 24221 exits with status 0<br class="">
<br class="">
Around a month ago it woked fine (It seems I tested it on pgpool-3.7.2), but now it does not work. Could you tell me some parameters what it depends on or you have other thoughts. <br class="">
<br class="">
Best regards,<br class="">
Vladyslav<br class="">
<br class="">
______________________________<wbr class="">_________________<br class="">
pgpool-general mailing list<br class="">
<a href="mailto:pgpool-general@pgpool.net" class="">pgpool-general@pgpool.net</a><br class="">
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank" class="">http://www.pgpool.net/mailman/<wbr class="">listinfo/pgpool-general</a><br class="">
</blockquote></div><br class=""></div></div></div>
</div></blockquote></div><br class=""></div></body></html>