<div dir="auto">Hi Tatsuo,<div dir="auto"><br></div><div dir="auto">At first, thank you so much for your time to investigate this issue.</div><div dir="auto"><br></div><div dir="auto">I have compiled pgpool 4.3.2 with your patch and the problem with pgbench is solved.</div><div dir="auto">I still need to test it in my environment.</div><div dir="auto"><br></div><div dir="auto">Anyway, I had a look your code and I have seen that the session is closed only if failover is not completed in 30 seconds.</div><div dir="auto">I have the following doubt related to this change. Is this session operative during the failover? I mean, if failover spends 20 seconds, is this session blocked during this time or this session can accept any transaction?</div><div dir="auto"><br></div><div dir="auto">Let me another question. Should we add this issue as a bug? </div><div dir="auto"><br></div><div dir="auto">Thanks in advance.</div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto">Jesús </div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">El mié, 12 abr 2023 3:33, Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp" target="_blank" rel="noreferrer">ishii@sraoss.co.jp</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> However a downside of this is, while failover clients cannot process<br>
> queries or at least slow down processing. Below is the log from<br>
> pgbench using "-P 1" option to show progress. As you can see from 170<br>
> s pgbench starts to slow down and recovers at 194 s. That is, the<br>
> slowdown continued for 24 seconds.<br>
> <br>
<br>
After more research, I suspect the slow down is due to effect of<br>
checkpointing. If I add "-S" option to change the transaction time, I<br>
don't see the slow down anymore.<br>
<br>
Best reagards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS LLC<br>
English: <a href="http://www.sraoss.co.jp/index_en/" rel="noreferrer noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp/index_en/</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
</blockquote></div>
</div>