<div dir="ltr"><div>Hi Tatsuo,</div><div><br></div><div>When I connect to pgpool with psql this session is not disconnected.</div><div>However, I've performed a test with pgbench inserting data with 30 clients in the database and when I shutdown server2 some clients of pgbench are disconnected.</div><div>Please find attached a zip file with pgpool logs, pgbench log and configurations of pgpool and postgres.</div><div><br></div><div>Thank you for your assistance in this matter.  <br></div><div><br></div><div>Best,</div><div>Jesús<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié, 22 mar 2023 a las 2:05, Tatsuo Ishii (<<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Please find attached my pgpool config and a log file when the standby<br>
> (server2) is powered off.<br>
> Thank you for your help.<br>
<br>
I assume server2 = host B.<br>
<br>
I have looked into the log file but failed to find log lines related<br>
to user sessions which were diconnected. I was looking for such log<br>
lines because you said:<br>
<br>
> Sometimes I have to power off the host B and then, the clients connected<br>
<br>
If such an event occurs, there should be such log lines.<br>
Many log lines like:<br>
<br>
2023-03-20 10:59:27.725: [unknown] pid 31499: LOG:  failover or failback event detected<br>
2023-03-20 10:59:27.725: [unknown] pid 31499: DETAIL:  restarting myself<br>
2023-03-20 10:59:27.726: main pid 30237: LOG:  child process with pid: 31499 exits with status 256<br>
2023-03-20 10:59:27.727: main pid 30237: LOG:  fork a new child process with pid: 29017<br>
<br>
just show that process 31499 is not related to any client session<br>
([unknown] indicates this) and even if the process exited, any client<br>
will not be affected.<br>
<br>
Can you connect to pgpool using psql and shutdown server2 so that log<br>
lines I am expecting are recorded?<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" target="_blank">http://www.sraoss.co.jp/index_en/</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
<br>
> Best,<br>
> Jesús<br>
> <br>
> El vie, 17 mar 2023 a las 0:13, Tatsuo Ishii (<<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>>)<br>
> escribió:<br>
> <br>
>> > Ok, I will send you the log ASAP.<br>
>> > I forget to indicate that we are running two instances of pgpool using<br>
>> > watchdog and VIP.<br>
>> ><br>
>> > I mean, in host A is running pgpool (active) and primary database. In<br>
>> host<br>
>> > B is running the other instance of pgpool and the standby database.<br>
>> > Sometimes I have to power off the host B and then, the clients connected<br>
>> to<br>
>> > pgpool in VIP are disconnected.<br>
>> ><br>
>> > I have the same pgpool.conf for both pgpool instances. Do you need It?<br>
>><br>
>> No, one pgpool.conf is enough.<br>
>><br>
>> > Thanks for your help!<br>
>><br>
>> You are welcome.<br>
>> --<br>
>> Tatsuo Ishii<br>
>> SRA OSS LLC<br>
>> English: <a href="http://www.sraoss.co.jp/index_en/" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en/</a><br>
>> Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
>><br>
</blockquote></div>