<div dir="ltr">Hello,<div><br></div><div>I&#39;m running pgpool + two postgresql servers in streaming replication with load balancing enabled.</div><div><br></div><div>pgpool version is 3.4.1 (tataraboshi)<br clear="all"><div>postgresql is 9.3</div><div><br></div><div>Recently I have a lot of failovers that is happening for unknown reason to me and puts my master node out. </div><div><br></div><div>This is part of my log that is interesting, this is when failover is started:</div><div><br></div><div><div><br></div><div><font face="monospace, monospace">Apr 13 09:20:28 localhost pgpool1[28256]: [3299-1] 2015-04-13 09:20:28: pid 28256: LOG:  pool_send_and_wait: Error or notice message from backend: : DB node id: 1 backend pid: 6667 statement: &quot;begin;&quot; message: &quot;there is already a transaction in progress&quot;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Apr 13 09:20:31 localhost pgpool1[4539]: [794-1] 2015-04-13 09:20:31: pid 4539: LOG:  received degenerate backend request for node_id: 0 from pid [4539]</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><b>Apr 13 09:20:31 localhost pgpool1[10204]: [3171-1] 2015-04-13 09:20:31: pid 10204: LOG:  starting degeneration. shutdown host node1(5432)</b></font></div><div><font face="monospace, monospace"><b><br></b></font></div><div><font face="monospace, monospace"><b>Apr 13 09:20:31 localhost pgpool1[10204]: [3172-1] 2015-04-13 09:20:31: pid 10204: LOG:  Restart all children</b></font></div><div><font face="monospace, monospace"><b><br></b></font></div><div><font face="monospace, monospace"><b>Apr 13 09:20:31 localhost pgpool1[10204]: [3173-1] 2015-04-13 09:20:31: pid 10204: LOG:  execute command: /etc/pgpool1/failover.sh 0 &quot;node1&quot; 5432 /var/lib/pgsql/9.3/data 1 0 &quot;node2&quot; 0</b></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Apr 13 09:20:31 localhost pgpool1[23945]: [2964-1] 2015-04-13 09:20:31: pid 23945: LOG:  child process received shutdown request signal 3</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Apr 13 09:20:31 localhost pgpool1[28278]: [3166-1] 2015-04-13 09:20:31: pid 28278: LOG:  child process received shutdown request signal 3</font></div></div><div><br></div><div>Part of pgpool configuration that might be interesting:</div><div><br></div><div><div><font face="monospace, monospace">replication_stop_on_mismatch = off</font></div><div><font face="monospace, monospace">failover_if_affected_tuples_mismatch = off</font></div></div><div><div><font face="monospace, monospace">health_check_period = 30</font></div><div><font face="monospace, monospace">health_check_timeout = 60</font></div></div><div><br></div><div><br></div><div>Of course I can provide more info if needed.</div><div>Can someone please help me where to look and how to indentify/prevent this problem.</div><div><br></div><div>Thanks a lot. </div><div><br></div>-- <br><div class="gmail_signature">Armin</div>
</div></div>