<div dir="ltr"><div lang="EN-US"><div class="gmail-m_-8420466628862410996WordSection1"><p class="MsoNormal"> <u></u></p><p class="MsoNormal">All,</p><p class="MsoNormal"><br></p><p class="MsoNormal">We are trying to trace down a problem that looks to be with our pgpool configuration or operation<u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">We have 2 nodes running.   The stack on each node is:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Our app<u></u><u></u></p><p class="MsoNormal">HikariCP<u></u><u></u></p><p class="MsoNormal">Jdbc<u></u><u></u></p><p class="MsoNormal">Pg-pool 3.6.7<u></u><u></u></p><p class="MsoNormal">Postgres 9.6.6<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Pgpool is set for Master-Slave with streaming replication; no load balancing.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">We are testing our disaster recovery and failover capabilities.    If we gracefully shutdown node 1 (2<sup>nd</sup> node), the 1<sup>st</sup> node proceeds as is nothing happened.  The app continues to run without missing a beat. As you would expect.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Our problem is when we encounter a “hard” error.  If node 1 becomes disconnected (network is removed), node 0 becomes impacted.   The app will freeze up as it can no longer get database connections.   We see the app/spring talk to Hikari, Hikari talks to jdbc, jdbc cannot get connection , eventaully Hikari times out (with 30 sec connection wait) and reples to app and we get exceptions.  This repeats as the app continues to try talk to the database.    Pgpool is aware that the node1 is gone as it is in recovery mode and node 0 pgpool retries to establish connectivity to pgpool on node 1 per pgpool.conf intervals.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">So the thing that really has us stumped is if node 0 is only talking through it’s stack to node 0 postgres, why is this failure on node1 having any impact on node 0 and freezing the db connections?    Obviously when a graceful shutdown occurs pgpool graceful handles this and things work as you expect.  With a hard failure, it does not.    I have attached our pgpool.conf file.   Can someone provide some guidance into the internals of pgpool and why this node1 hard failure causes node 0 impacts?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks<span class="gmail-HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="gmail-HOEnZb"><font color="#888888"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Mike<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><div><br></div></font></span></div></div></div>