<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><dd style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:medium"><h1 class="gmail-SECT1" style="font-size:1.4em;margin-top:0em;margin-bottom:0em;color:rgb(236,88,0)"><a name="TUTORIAL-WATCHDOG-INTRO">4.1. Introduction</a></h1><p style="line-height:1.3"><span class="gmail-FIRSTTERM" style="font-weight:bold;color:rgb(68,0,0)">Watchdog</span> is a sub process of <span class="gmail-PRODUCTNAME" 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 class="gmail-PRODUCTNAME" style="color:rgb(68,0,0)">Pgpool-II</span> nodes. The watchdog was first introduced in <span class="gmail-PRODUCTNAME" style="color:rgb(68,0,0)">pgpool-II</span> <span class="emphasis" style="color:rgb(68,0,0)"><span class="gmail-EMPHASIS" style="font-weight:bold">V3.2</span></span> and is significantly enhanced in <span class="gmail-PRODUCTNAME" style="color:rgb(68,0,0)">Pgpool-II</span> <span class="emphasis" style="color:rgb(68,0,0)"><span class="gmail-EMPHASIS" 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 class="emphasis" style="color:rgb(68,0,0)"><span class="gmail-EMPHASIS" 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)">Section 5.14.6</a>) to reduce the false positives of <span class="gmail-PRODUCTNAME" style="color:rgb(68,0,0)">PostgreSQL</span> server failures. <span class="emphasis" style="color:rgb(68,0,0)"><span class="gmail-EMPHASIS" style="font-weight:bold">To ensure the quorum mechanism properly works, the number of <span class="gmail-PRODUCTNAME">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 class="gmail-VARNAME">delegate_IP</tt> (<tt class="gmail-TYPE">string</tt>)</dt><p style="line-height:1.3"><span class="emphasis" style="color:rgb(68,0,0)"><span class="gmail-EMPHASIS" style="font-weight:bold"></span></span></p><dd><p style="line-height:1.3">Specifies the virtual IP address (VIP) of <span class="gmail-PRODUCTNAME" style="color:rgb(68,0,0)">Pgpool-II</span> that is connected from client servers (application servers etc.). When a <span class="gmail-PRODUCTNAME" style="color:rgb(68,0,0)">Pgpool-II</span> is switched from standby to active, the <span class="gmail-PRODUCTNAME" style="color:rgb(68,0,0)">Pgpool-II</span> takes over this VIP. <span class="emphasis" style="color:rgb(68,0,0)"><span class="gmail-EMPHASIS" style="font-weight:bold">VIP will not be brought up in case the quorum does not exist</span></span>. Default is <tt class="gmail-LITERAL" 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></div></div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Best,</div><div>Jesús</div><div><br></div></div>