<div dir="ltr"><div>Thanks Tatsuo!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 17 ago 2021 alle ore 06:40 Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Strange. In this case Pgpool-II does not restart Pgpool-II child<br>
process and clients will not notice failover happened.<br></blockquote><div><br></div><div>Yes, this is what I expect!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
1) You do not enable health check. In this case new clients will<br>
receive the error you mentioned.<br></blockquote><div><br></div><div>Health check is enabled:</div><div><div>============================================================================</div></div>#------------------------------------------------------------------------------<br># HEALTH CHECK GLOBAL PARAMETERS<br>#------------------------------------------------------------------------------<br><br>health_check_period = 10<br>health_check_timeout = 10<br>health_check_user = 'hc'<br>health_check_password = 'password'<br>health_check_database = 'postgres'<br>health_check_max_retries = 3<br>health_check_retry_delay = 1<br>connect_timeout = 10000<br><div> ============================================================================<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2) The failover should not continue for long time like a few<br>
minutes. For some reason I don't know your failover process takes<br>
longer. Have you enabled watchdog? Or do you have special failover<br>
command which could take long time?<br></blockquote><div><br></div><div>I have  a bash script which connects to the backend and execute a failover running the repmgr command:</div><div><div> ============================================================================</div></div><div>#------------------------------------------------------------------------------<br># FAILOVER AND FAILBACK<br>#------------------------------------------------------------------------------<br><br>failover_command = '/usr/local/bin/pgpool-failover.sh %d %h %P %m %H %R'<br></div><div>failback_command = 'echo failback %d %h %p %D %m %H %M %P'</div><div>failover_on_backend_error = on<br>detach_false_primary = off<br>search_primary_node_timeout = 5min</div><div>============================================================================<br></div><div><br></div><div>Anyway, I did not counted the failover duration (and this is not a problem now), the point is that a failover should not be performed in this case.</div><div><br></div><div>Thank you!</div><div><br></div><div><br></div></div></div>