<div dir="ltr">Thanks Tatsuo<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 31, 2019 at 3:38 PM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">First of all, 3.3.4 is not maintained any more. Please use Pgpool-II<br>
versions maintained by community. (see<br>
<a href="https://pgpool.net/mediawiki/index.php/EOL_information" rel="noreferrer" target="_blank">https://pgpool.net/mediawiki/index.php/EOL_information</a> more info on<br>
EOL).<br>
<br>
I see you use repmgr which in my understanding it does failover, while<br>
Pgpool-II does failover as well. So I suspect there might be conflict<br>
between them in terms of failover.<br>
<br>
>From what I understand, Pgpool-II surely detects connection problem<br>
with standby. Maybe repmgr does something to standby which makes<br>
Pgpool-II thinks that there&#39;s a problem with standby?<br>
<br>
&gt; Thanks Tatsuo<br>
&gt; <br>
&gt; here is the reply:<br>
&gt; 1- pgpool-II version 3.3.4 (tokakiboshi)<br>
&gt; 2-  psql -U pgpool --dbname=postgres --host 10.10.0.2 -c &quot;show pool_nodes&quot;<br>
&gt;  node_id |  hostname  | port | status | lb_weight |  role<br>
&gt; ---------+------------+------+--------+-----------+---------<br>
&gt;  0       | pgserver01 | 3432 | 2      | 0.500000  | primary<br>
&gt;  1       | pgserver02 | 3432 | 3      | 0.500000  | standby<br>
&gt; (2 rows)<br>
&gt; 3- pgpool.conf - attached<br>
&gt; <br>
&gt; Kind Regards,<br>
&gt; <br>
&gt; <br>
&gt; On Tue, Dec 31, 2019 at 3:18 AM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt; wrote:<br>
&gt; <br>
&gt;&gt; Looks strange. It seems every time client_idle_limit is hit, failover<br>
&gt;&gt; happens, or vice versa. I need more info. Can you share:<br>
&gt;&gt;<br>
&gt;&gt; - exact Pgpool-II version<br>
&gt;&gt; - output from &quot;show pool_nodes&quot;<br>
&gt;&gt; - pgpool.conf<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt; --<br>
&gt;&gt; Tatsuo Ishii<br>
&gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt;<br>
&gt;&gt; &gt; Dear all<br>
&gt;&gt; &gt; i have setup two nodes of postgres 9.4 with streaming replication and<br>
&gt;&gt; they<br>
&gt;&gt; &gt; work fine as below command:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;  $repmgr -f repmgr/repmgr.conf cluster show<br>
&gt;&gt; &gt; Role      | Connection String<br>
&gt;&gt; &gt; * master  | host=10.10.0.2 (pgserver01)  port=3432 user=repmgr<br>
&gt;&gt; dbname=repmgr<br>
&gt;&gt; &gt;   standby | host=10.10.0.3(pgserver02)  port=3432 user=repmgr<br>
&gt;&gt; dbname=repmgr<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; and sometimes the slave being deatatched from pgpool while its running<br>
&gt;&gt; and<br>
&gt;&gt; &gt; accepting data from master node but from pgadmin its beeing deattached<br>
&gt;&gt; and<br>
&gt;&gt; &gt; the error below appears in pgpool logs :<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; any one have an idea<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ERROR: pid 1770: health check failed. 1 th host pgserver02 at port 3432<br>
&gt;&gt; is<br>
&gt;&gt; &gt; down<br>
&gt;&gt; &gt; ec 30 12:57:26 dataserver01 pgpool[1770]: 2019-12-30 12:57:26 LOG:   pid<br>
&gt;&gt; &gt; 40056: pool_process_query: child connection forced to terminate due to<br>
&gt;&gt; &gt; client_idle_limit (180) reached<br>
&gt;&gt; &gt; Dec 30 12:57:27 dataserver01 pgpool[1770]: 2019-12-30 12:57:27 LOG:   pid<br>
&gt;&gt; &gt; 9877: connect_inet_domain_socket: select() timed out. retrying...<br>
&gt;&gt; &gt; Dec 30 12:57:27 dataserver01 pgpool[1770]: 2019-12-30 12:57:27 LOG:   pid<br>
&gt;&gt; &gt; 1770: connect_inet_domain_socket: select() interrupted<br>
&gt;&gt; &gt; Dec 30 12:57:27 dataserver01 pgpool[1770]: 2019-12-30 12:57:27 ERROR: pid<br>
&gt;&gt; &gt; 1770: make_persistent_db_connection: connection to pgserver02(3432)<br>
&gt;&gt; failed<br>
&gt;&gt; &gt; Dec 30 12:57:27 dataserver01 pgpool[1770]: 2019-12-30 12:57:27 ERROR: pid<br>
&gt;&gt; &gt; 1770: health check failed. 1 th host pgserver02 at port 3432 is down<br>
&gt;&gt; &gt; Dec 30 12:57:27 dataserver01 pgpool[1770]: 2019-12-30 12:57:27 LOG:   pid<br>
&gt;&gt; &gt; 40604: connect_inet_domain_socket: select() timed out. retrying...<br>
&gt;&gt; &gt; Dec 30 12:57:28 dataserver01 pgpool[1770]: 2019-12-30 12:57:28 LOG:   pid<br>
&gt;&gt; &gt; 40743: pool_process_query: child connection forced to terminate due to<br>
&gt;&gt; &gt; client_idle_limit (180) reached<br>
&gt;&gt; &gt; Dec 30 12:57:28 dataserver01 pgpool[1770]: 2019-12-30 12:57:28 LOG:   pid<br>
&gt;&gt; &gt; 43528: pool_process_query: child connection forced to terminate due to<br>
&gt;&gt; &gt; client_idle_limit (180) reached<br>
&gt;&gt; &gt; Dec 30 12:57:29 dataserver01 pgpool[1770]: 2019-12-30 12:57:29 LOG:   pid<br>
&gt;&gt; &gt; 42497: pool_process_query: child connection forced to terminate due to<br>
&gt;&gt; &gt; client_idle_limit (180) reached<br>
&gt;&gt; &gt; Dec 30 12:57:30 dataserver01 pgpool[1770]: 2019-12-30 12:57:30 LOG:   pid<br>
&gt;&gt; &gt; 42306: pool_process_query: child connection forced to terminate due to<br>
&gt;&gt; &gt; client_idle_limit (180) reached<br>
&gt;&gt; &gt; Dec 30 12:57:37 dataserver01 pgpool[1770]: 2019-12-30 12:57:37 LOG:   pid<br>
&gt;&gt; &gt; 9877: connect_inet_domain_socket: select() timed out. retrying...<br>
&gt;&gt; &gt; Dec 30 12:57:37 dataserver01 pgpool[1770]: 2019-12-30 12:57:37 LOG:   pid<br>
&gt;&gt; &gt; 40604: connect_inet_domain_socket: select() timed out. retrying...<br>
&gt;&gt; &gt; Dec 30 12:57:38 dataserver01 pgpool[1770]: 2019-12-30 12:57:38 LOG:   pid<br>
&gt;&gt; &gt; 44622: pool_process_query: child connection forced to terminate due to<br>
&gt;&gt; &gt; client_idle_limit (180) reached<br>
&gt;&gt; &gt; Dec 30 12:57:39 dataserver01 pgpool[1770]: 2019-12-30 12:57:39 LOG:   pid<br>
&gt;&gt; &gt; 42245: pool_process_query: child connection forced to terminate due to<br>
&gt;&gt; &gt; client_idle_limi<br>
&gt;&gt;<br>
</blockquote></div>