<div dir="ltr"><div>Hello,<div><br></div><div>Along with other services running in docker swarm architecture I have a database server of 3 PostgreSQL nodes deployed in Patroni + ETCD HA Solution and a connection pooling method, PgPool-II.</div><div><br></div><div><div>PostgreSQL Version: 13.8<br></div><div><span class="gmail-il">PgPool</span> Version: 4.2.5<br></div><div>HA Cluster-Management of Database: Patroni + ETCD (1 Primary + 2 Standby)</div><div><br></div><div>** Note: Load Balancing is disabled. All the read-write operations are routed only to Primary Node.</div><div><br></div><div><b>Issue:</b> Frequent logs related to failover or failback event detected.</div><div>Pgpool-II Logs:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2024-12-19 18:09:45: pid 776: LOG:  failover or failback event detected<br>2024-12-19 18:09:45: pid 776: DETAIL:  restarting myself</blockquote></div><div><br></div><div>I also tracked the database logs, but didn't find any logs relevant to the issue.<br>Database Logs:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2024-12-19 18:09:45 UTC [81078]: [67646169.13cb6-1] [unknown]@[unknown],app=[unknown] [00000] LOG:  connection received: host=10.10.1.122 port=42172<br>2024-12-19 18:09:45 UTC [81078]: [67646169.13cb6-2] tsdb@tsdb,app=[unknown] [00000] LOG:  connection authorized: user=tsdb database=tsdb</blockquote><div> </div></div><div>As per my understanding, these pgpool-II logs occur when Pgpool-II is not able to communicate with PostgreSQL nodes. Which happens probably when Database is not running or service is restarted.</div><div>But the database service seems to be running normally. </div><div><br></div><div>Please help on this issue. Am I missing something to check or there can be any other issue?</div><div><br></div><div>--</div></div></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b><u><font color="#4c1130">Thanks & Regards</font></u></b><div>Aviral Singh</div></div></div></div>