<div dir="ltr"><span style="font-size:16px">Dear Michael</span><div style="font-size:16px"><br></div><div style="font-size:16px">well, I have this on, but if we read the comment there, it doesn&#39;t look like it&#39;s designed for this case:</div><div style="font-size:16px"><br></div><div style="font-size:16px"><div># Initiates failover when reading/writing to the</div><div># backend communication socket fails</div><div># If set to off, pgpool will report an</div><div># error and disconnect the session.</div></div><div style="font-size:16px"><br></div><div style="font-size:16px">In case of the disk space issue, we still got our socket alive and communication does happen with a backend.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 20, 2015 at 5:47 PM, Michel Kirstein <span dir="ltr">&lt;<a href="mailto:kirstein@tuhh.de" target="_blank">kirstein@tuhh.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aistis,<br>
as i see, it the option &quot;fail_over_on_backend_error&quot; does enable what you&#39;re looking for.<br>
By default it&#39;s set to false and pgpool does just &quot;report an error and disconnect the session&quot;.<br>
I think health_check does only check if the node is still alive and replies to a simple select.<br>
<br>
Am 20.02.2015 um 16:15 schrieb Aistis Zen:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello<br>
<br>
I managed to go past failover scenarios with introduction of failback<br>
scripts. All the &quot;normal&quot; tests like failover and failback are working, so<br>
I went further and tested out-of-order scenario with the master suddenly<br>
not having enough disk space. What happened is.. nothing. My script keeps<br>
on trying to write and pgpool reporting:<br>
<br>
Feb 20 17:02:47 slave pgpool[16626]: DB node id: 1 backend pid: 17243<br>
statement: BEGIN<br>
Feb 20 17:02:47 slave pgpool[16626]: DB node id: 0 backend pid: 3689<br>
statement: INSERT into demo.test(uid) values(37501);<br>
Feb 20 17:02:47 slave pgpool[16626]: pool_send_and_wait: Error or notice<br>
message from backend: : DB node id: 0 backend pid: 3689 statement: INSERT<br>
into demo.test(uid) values(37501); message: could not extend file<br>
&quot;base/24675/24681&quot;: No space left on device<br>
<br>
Shouldn&#39;t it assume that the backend has an issue and initiate a failover<br>
in this case? Is there anything to be configured in pgpool, which could<br>
catch such exception? I know it does SELECT&#39;s to check availability, but it<br>
doesn&#39;t seem to care if the master database is no longer writable.<br>
<br>
<br>
Thank you!<br>
Aistis<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/<u></u>listinfo/pgpool-general</a><br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/<u></u>listinfo/pgpool-general</a><br>
</blockquote></div><br></div>