<div dir="ltr">To clarify, my problem is that I always need a virtual IP (indicated in odbc.ini file) where clients connect to the database.<div>Although I had the possibility to have the third node, in my system sometimes there is only one server running. How should I ensure that the virtual IP is up in this case?</div><div><br></div><div>Thank you.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar, 11 oct 2022 a las 9:26, Jesús Campoy (<<a href="mailto:jesuscampoy@gmail.com">jesuscampoy@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>I'm trying to configure watchdog in pgpool version 4.3.2 (tamahomeboshi) using streaming replication with two nodes, one as primary and another as standby.</div><div>But I just read in the documentation that to use watchdog requires at least 3 nodes. As I mentioned, I have only 2 nodes and I don't have the possibility to add a third one. </div><div>Should I discard the use of watchdog? Is there any possibility to make it work with only 2 nodes?</div><div><br></div><div><div><dl><dd style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:medium"><h1 style="font-size:1.4em;margin-top:0em;margin-bottom:0em;color:rgb(236,88,0)"><a name="m_7433164874682889225_TUTORIAL-WATCHDOG-INTRO">4.1. Introduction</a></h1><p style="line-height:1.3"><span style="font-weight:bold;color:rgb(68,0,0)">Watchdog</span> is a sub process of <span style="color:rgb(68,0,0)">Pgpool-II</span> to add high availability. Watchdog is used to resolve the single point of failure by coordinating multiple <span style="color:rgb(68,0,0)">Pgpool-II</span> nodes. The watchdog was first introduced in <span style="color:rgb(68,0,0)">pgpool-II</span> <span style="color:rgb(68,0,0)"><span style="font-weight:bold">V3.2</span></span> and is significantly enhanced in <span style="color:rgb(68,0,0)">Pgpool-II</span> <span style="color:rgb(68,0,0)"><span style="font-weight:bold">V3.5</span></span>, to ensure the presence of a quorum at all time. This new addition to watchdog makes it more fault tolerant and robust in handling and guarding against the split-brain syndrome and network partitioning. In addition, <span style="color:rgb(68,0,0)"><span style="font-weight:bold">V3.7</span></span> introduced quorum failover (see <a href="https://www.pgpool.net/docs/42/en/html/runtime-watchdog-config.html#CONFIG-WATCHDOG-FAILOVER-BEHAVIOR" style="color:rgb(0,133,176)" target="_blank">Section 5.14.6</a>) to reduce the false positives of <span style="color:rgb(68,0,0)">PostgreSQL</span> server failures. <span style="color:rgb(68,0,0)"><span style="font-weight:bold">To ensure the quorum mechanism properly works, the number of <span>Pgpool-II</span> nodes must be odd in number and greater than or equal to 3.</span></span></p></dd><dd style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:medium"></dd><dt><tt>delegate_IP</tt> (<tt>string</tt>)</dt></dl><p style="line-height:1.3"><span style="color:rgb(68,0,0)"><span style="font-weight:bold"></span></span></p><dl><dd><p style="line-height:1.3">Specifies the virtual IP address (VIP) of <span style="color:rgb(68,0,0)">Pgpool-II</span> that is connected from client servers (application servers etc.). When a <span style="color:rgb(68,0,0)">Pgpool-II</span> is switched from standby to active, the <span style="color:rgb(68,0,0)">Pgpool-II</span> takes over this VIP. <span style="color:rgb(68,0,0)"><span style="font-weight:bold">VIP will not be brought up in case the quorum does not exist</span></span>. Default is <tt style="color:rgb(68,0,0)">''</tt>(empty): which means virtual IP will never be brought up.</p><p style="line-height:1.3">This parameter can only be set at server start.</p></dd></dl></div></div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Best,</div><div>Jesús</div><div><br></div></div>
</blockquote></div>