<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Yes, virtual IP is one way to configure HA but we&#39;re currently not using it.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">The two nodes has watchdog enabled. And the watchdog on standby does detect when primary watchdog dies. Is there a callback that runs a script upon this kind of situation?</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">The idea is create a mechanism to automatically notify the administrator when one watchdog fails at minimum and to automatically restart pgpool on failed node at best.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 13, 2018 at 2:08 PM, Pierre Timmermans <span dir="ltr">&lt;<a href="mailto:ptim007@yahoo.com" target="_blank">ptim007@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"><div><div>If you set-up the two pgpool nodes in watch-dog mode then yes, the surviving pgpool node will detect when the other node is stopped (via a heartbeat mechanism). </div><div><br></div><div>In watchdog mode each pgpool node knows about all the others, one of them is elected as primary. The primary pgpool node acquires the VIP (virtual IP aka delegate_ip in pgpool names).  So this is really about making pgpool itself highly available, not to be confused with postgres replication.</div><div><br></div><div>The pgpool instances can be on the same servers as postgres or they can be on other servers.</div></div><div><br></div><div>Pierre</div>
            <div><br></div><div><br></div>
            
            <div id="m_-6703404147528678035ydp3927c454yahoo_quoted_1291744967" class="m_-6703404147528678035ydp3927c454yahoo_quoted">
                <div style="font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;color:#26282a"><div><div class="h5">
                    
                    <div>
                        On Tuesday, March 13, 2018, 5:15:29 PM GMT+1, Alexander Dorogensky &lt;<a href="mailto:amazinglifetime@gmail.com" target="_blank">amazinglifetime@gmail.com</a>&gt; wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    </div></div><div><div><div class="h5"><div id="m_-6703404147528678035ydp3927c454yiv4548600200"><div dir="ltr"><div class="m_-6703404147528678035ydp3927c454yiv4548600200gmail_default" style="font-family:courier new,monospace">Hi,</div><div class="m_-6703404147528678035ydp3927c454yiv4548600200gmail_default" style="font-family:courier new,monospace"><br></div><div class="m_-6703404147528678035ydp3927c454yiv4548600200gmail_default" style="font-family:courier new,monospace">I have a <span style="color:rgb(34,34,34);font-size:small;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-color:initial;float:none;display:inline">primary/standby</span> configuration with streaming replication.</div><div class="m_-6703404147528678035ydp3927c454yiv4548600200gmail_default" style="font-family:courier new,monospace">There&#39;s two nodes and each node has pgpool.</div><div class="m_-6703404147528678035ydp3927c454yiv4548600200gmail_default" style="font-family:courier new,monospace"><br></div><div class="m_-6703404147528678035ydp3927c454yiv4548600200gmail_default" style="font-family:courier new,monospace">When I kill pgpool on primary, does standby gets notified?</div><div class="m_-6703404147528678035ydp3927c454yiv4548600200gmail_default" style="font-family:courier new,monospace"><br></div><div class="m_-6703404147528678035ydp3927c454yiv4548600200gmail_default" style="font-family:courier new,monospace">This is not a failover scenario and the failover script doesn&#39;t get executed.</div></div></div></div></div>______________________________<wbr>_________________<br>pgpool-general mailing list<br><a href="mailto:pgpool-general@pgpool.net" rel="nofollow" target="_blank">pgpool-general@pgpool.net</a><br><a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="nofollow" target="_blank">http://www.pgpool.net/mailman/<wbr>listinfo/pgpool-general</a><br></div>
                </div>
            </div></div></div></blockquote></div><br></div>