<div dir="ltr">Thank you for your quick response. It works!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar, 11 oct 2022 a las 9:45, Bo Peng (<<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</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">Hello,<br>
<br>
> Should I discard the use of watchdog? Is there any possibility to make it<br>
> work with only 2 nodes?<br>
<br>
If you are using Pgpool-II with two Pgpool-II nodes,<br>
you need to enable the following parameter to ensure that VIP is up even if one node goes down.<br>
<br>
enable_consensus_with_half_votes = on<br>
<br>
<a href="https://www.pgpool.net/docs/43/en/html/runtime-watchdog-config.html#GUC-ENABLE-CONSENSUS-WITH-HALF-VOTES" rel="noreferrer" target="_blank">https://www.pgpool.net/docs/43/en/html/runtime-watchdog-config.html#GUC-ENABLE-CONSENSUS-WITH-HALF-VOTES</a><br>
<br>
Plase note that enabling this parameter may cause split-brain.<br>
<br>
<br>
On Tue, 11 Oct 2022 09:26:54 +0200<br>
Jesús Campoy <<a href="mailto:jesuscampoy@gmail.com" target="_blank">jesuscampoy@gmail.com</a>> wrote:<br>
<br>
> Hi all,<br>
> <br>
> I'm trying to configure watchdog in pgpool version 4.3.2 (tamahomeboshi)<br>
> using streaming replication with two nodes, one as primary and another as<br>
> standby.<br>
> But I just read in the documentation that to use watchdog requires at least<br>
> 3 nodes. As I mentioned, I have only 2 nodes and I don't have the<br>
> possibility to add a third one.<br>
> Should I discard the use of watchdog? Is there any possibility to make it<br>
> work with only 2 nodes?<br>
> <br>
> 4.1. Introduction<br>
> <br>
> Watchdog is a sub process of Pgpool-II to add high availability. Watchdog<br>
> is used to resolve the single point of failure by coordinating multiple<br>
> Pgpool-II nodes. The watchdog was first introduced in pgpool-II V3.2 and is<br>
> significantly enhanced in Pgpool-II V3.5, to ensure the presence of a<br>
> quorum at all time. This new addition to watchdog makes it more fault<br>
> tolerant and robust in handling and guarding against the split-brain<br>
> syndrome and network partitioning. In addition, V3.7 introduced quorum<br>
> failover (see Section 5.14.6<br>
> <<a href="https://www.pgpool.net/docs/42/en/html/runtime-watchdog-config.html#CONFIG-WATCHDOG-FAILOVER-BEHAVIOR" rel="noreferrer" target="_blank">https://www.pgpool.net/docs/42/en/html/runtime-watchdog-config.html#CONFIG-WATCHDOG-FAILOVER-BEHAVIOR</a>>)<br>
> to reduce the false positives of PostgreSQL server failures. To ensure the<br>
> quorum mechanism properly works, the number of Pgpool-II nodes must be odd<br>
> in number and greater than or equal to 3.<br>
> delegate_IP (string)<br>
> <br>
> Specifies the virtual IP address (VIP) of Pgpool-II that is connected from<br>
> client servers (application servers etc.). When a Pgpool-II is switched<br>
> from standby to active, the Pgpool-II takes over this VIP. VIP will not be<br>
> brought up in case the quorum does not exist. Default is ''(empty): which<br>
> means virtual IP will never be brought up.<br>
> <br>
> This parameter can only be set at server start.<br>
> <br>
> Thanks in advance.<br>
> <br>
> Best,<br>
> Jesús<br>
<br>
<br>
-- <br>
Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>><br>
SRA OSS LLC<br>
<a href="https://www.sraoss.co.jp/" rel="noreferrer" target="_blank">https://www.sraoss.co.jp/</a><br>
</blockquote></div>