<div dir="auto">Hi Tatsuo,<div dir="auto"><br></div><div dir="auto">Should I test anything else to try to solve my problem?</div><div dir="auto"><br></div><div dir="auto">Thank you.</div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto">Jesús </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie, 31 mar 2023 12:10, Jesús Campoy <<a href="mailto:jesuscampoy@gmail.com">jesuscampoy@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi, <div dir="auto"><br></div><div dir="auto">I just performed the same tests with auto_failback to off but the behaviour is the same (clients are disconnected).</div><div dir="auto"><br></div><div dir="auto">Thank you Tatsuo. </div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto">Jesús </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie, 31 mar 2023 2:31, 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">Hi Jesús,<br>
<br>
Can you try again after setting "auto_failback = off"? I suspect<br>
auto_failback confuses pgpool.<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>
<br>
> Hi Tatsuo,<br>
> <br>
> When I connect to pgpool with psql this session is not disconnected.<br>
> However, I've performed a test with pgbench inserting data with 30 clients<br>
> in the database and when I shutdown server2 some clients of pgbench are<br>
> disconnected.<br>
> Please find attached a zip file with pgpool logs, pgbench log and<br>
> configurations of pgpool and postgres.<br>
> <br>
> Thank you for your assistance in this matter.<br>
> <br>
> Best,<br>
> Jesús<br>
> <br>
> El mié, 22 mar 2023 a las 2:05, Tatsuo Ishii (<<a href="mailto:ishii@sraoss.co.jp" rel="noreferrer noreferrer" target="_blank">ishii@sraoss.co.jp</a>>)<br>
> escribió:<br>
> <br>
>> > 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<br>
>> 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:<br>
>> 31499 exits with status 256<br>
>> 2023-03-20 10:59:27.727: main pid 30237: LOG:  fork a new child process<br>
>> 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 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>
>><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" rel="noreferrer noreferrer" 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<br>
>> 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 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>
>> >><br>
>><br>
</blockquote></div>
</blockquote></div>