<html><head></head><body><div class="ydp2f12b4dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div>What is in the log of the pgpool on server B ? You should see in the log of pgpool on node B a lot of information, normally the watchdog detects that the primary pgpool is lost, then it logs about the new consensus and the election of a new leader. If the node B takes over the primary role, you will see that the VIP is acquired by node B,...Also because the primary postgres was also lost, in the log of on node B you should also see that the promotion of the standby database (on node B) to primary was done.<br></div><div><br></div><div>Maybe you can try the pcp_watchdog_info utility on the pgpool of server B, if it does not respond than indeed pgpool B might be stuck..</div><div><br></div><div>Maybe you can post the log of the pgpool B at the time you shutted down the server A ?</div><div><br></div><div><br></div><div class="ydp2f12b4dsignature">Pierre</div></div>
        <div><br></div><div><br></div>
        
        </div><div id="ydp8b82c644yahoo_quoted_5297232085" class="ydp8b82c644yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Thursday, December 13, 2018, 8:08:01 PM GMT+1, Juan Carlos Michaca &lt;jcmichaca@vinkos.com&gt; wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="ydp8b82c644yiv9833616241"><div><div dir="ltr"><div dir="ltr"><div>Hi Pierre;</div><div><br clear="none"></div><div>Thanks for your reply.</div><div><br clear="none"></div><div>Currently I have just 2 connections in&nbsp; pg_stat_activity, and num_init_children is set to 32 in pgpool.conf.</div><div><br clear="none"></div><div>I set num_init_children to 50 and problem persists, I should restart pgpool force it to accept connections.</div><div><br clear="none"></div><div>I share my pgpool.conf<br clear="none"></div><div><br clear="none"></div><div>Regards.<br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div></div></div><br clear="none"><div class="ydp8b82c644yiv9833616241yqt1984969528" id="ydp8b82c644yiv9833616241yqt41911"><div class="ydp8b82c644yiv9833616241gmail_quote"><div dir="ltr">On Thu, Dec 13, 2018 at 8:33 AM Pierre Timmermans &lt;<a shape="rect" href="mailto:ptim007@yahoo.com" rel="nofollow" target="_blank">ptim007@yahoo.com</a>&gt; wrote:<br clear="none"></div><blockquote class="ydp8b82c644yiv9833616241gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div><div class="ydp8b82c644yiv9833616241gmail-m_-3769768005786647630ydped65669cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div>Hi <br clear="none"></div><div><br clear="none"></div><div>The most common reason for that is when the parameter num_init_children is too low: when there are more connections to postgres than num_init_children then pgpool does not give an error but it refuses (or it queues it maybe) without giving an error.</div><div><br clear="none"></div><div>So count the number of connection (from pg_stat_activity) and if it is equal to num_init_children then you have the answer...<br clear="none"></div><div><br clear="none"></div><div class="ydp8b82c644yiv9833616241gmail-m_-3769768005786647630ydped65669csignature">Pierre</div></div>
        <div><br clear="none"></div><div><br clear="none"></div>
        
        </div><div class="ydp8b82c644yiv9833616241gmail-m_-3769768005786647630ydp9a39d188yahoo_quoted" id="ydp8b82c644yiv9833616241gmail-m_-3769768005786647630ydp9a39d188yahoo_quoted_5304813720">
            <div>
                
                <div>
                    On Thursday, December 13, 2018, 2:13:52 AM GMT+1, Juan Carlos Michaca &lt;<a shape="rect" href="mailto:jcmichaca@vinkos.com" rel="nofollow" target="_blank">jcmichaca@vinkos.com</a>&gt; wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div id="ydp8b82c644yiv9833616241gmail-m_-3769768005786647630ydp9a39d188yiv9962263192"><div dir="ltr"><div dir="ltr"><p dir="ltr" id="ydp8b82c644yiv9833616241gmail-m_-3769768005786647630ydp9a39d188yiv9962263192gmail-docs-internal-guid-104ef2e2-7fff-8d50-2e2a-ae3a9e8136d2" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Hi all,</span></p><br clear="none"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">I am testing pgpool in this scenario</span></p><br clear="none"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Pgpool A(Master) + PG Backend A (primary)</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:36pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Pgpool B(Standby) + PG Backend B (replica with streaming replication)</span></p><div><br clear="none"></div><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">At this point I'm able to run queries to pgpool from any address in my network.<br clear="none"></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;"><br clear="none"></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">If I shut down Pgpool A(Master) and its PG Backend (primary), Pgpool B(now master) is not accepting any connections until I restart it. </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;"><br clear="none"></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">After restarting Pgpool B(now master) I can connect to pgpool from any host and run queries.</span></p><br clear="none"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Please, can you help to figure out what's could be wrong?</span></p><br clear="none"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Regards</span></p></div></div></div>_______________________________________________<br clear="none">pgpool-general mailing list<br clear="none"><a shape="rect" href="mailto:pgpool-general@pgpool.net" rel="nofollow" target="_blank">pgpool-general@pgpool.net</a><br clear="none"><a shape="rect" href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="nofollow" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br clear="none"></div>
            </div>
        </div></div></blockquote></div></div></div></div></div>
            </div>
        </div></body></html>