<div dir="auto"><div>Yes , I am using watchdog.</div><div dir="auto"> Please refer the issue which I described in my previous email and guide. Why the node 1 pgpool uses his outdated information to became primary again.</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Pradeep Prajapati <br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, 16 Aug, 2024, 3:02 pm Bo Peng, <<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
> Hello Team,<br>
> <br>
> I Need help or suggestions on the issue below pgpool-II.<br>
> <br>
> Example:-<br>
> Node1 -- Primary (Postgres & pgpool installed)<br>
> Node2 -- Standby (Postgres & pgpool installed)<br>
> Node3 -- Witness (Pgpool installed)<br>
> <br>
> Incident:-<br>
> <br>
> 1. In the pgpool cluster we have node1 is primary, node2 is secondary, and<br>
> node3 is witness.<br>
> 2. node1 becomes unresponsive then failover is triggered and then node2<br>
> becomes the new primary.<br>
> 3. After 15 minutes node1 became responsive again and node1 is in primary<br>
> state and we have node 2 also in primary so a split brain situation<br>
> happened.<br>
> 4. Node 1 itself is decided as leader/coordinator based on the node 1<br>
> pgpool record and more number of connected standby nodes (based on old<br>
> state of information) , now i am the true leader, it is decided as the true<br>
> leader and asks node 2 to step down.<br>
> 5. In this case for 15 minutes data written to node 2 new primary after<br>
> node 1 responsive data gets started to return on node 1 again so here data<br>
> gets inconsistent.<br>
> <br>
> Please provide a suggestion in this case.<br>
> <br>
> NOTE:- We are using only for auto-failover not for auto-failback so<br>
> auto-failback is disabled.<br>
<br>
To avoid Split-brain, you can use watchdog by setting "use_watchdog = on".<br>
Are you using watchdog?<br>
<br>
-- <br>
Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank" rel="noreferrer">pengbo@sraoss.co.jp</a>><br>
SRA OSS K.K.<br>
TEL: 03-5979-2701 FAX: 03-5979-2702<br>
URL: <a href="https://www.sraoss.co.jp/" rel="noreferrer noreferrer" target="_blank">https://www.sraoss.co.jp/</a><br>
</blockquote></div></div></div>