<div dir="ltr"><div>It doesnt recognize that command. It just prints the help output.</div><div><br></div><div>pgpool-II version 4.0.5 (torokiboshi),</div>  A generic connection pool/replication/load balance server for PostgreSQL<br><br>Usage:<br>  pgpool [ -c] [ -f CONFIG_FILE ] [ -F PCP_CONFIG_FILE ] [ -a HBA_CONFIG_FILE ]<br>         [ -n ] [ -D ] [ -d ]<br>  pgpool [ -f CONFIG_FILE ] [ -F PCP_CONFIG_FILE ] [ -a HBA_CONFIG_FILE ]<br>         [ -m SHUTDOWN-MODE ] stop<br>  pgpool [ -f CONFIG_FILE ] [ -F PCP_CONFIG_FILE ] [ -a HBA_CONFIG_FILE ] reload<br><br>Common options:<br>  -a, --hba-file=HBA_CONFIG_FILE<br>                      Set the path to the pool_hba.conf configuration file<br>                      (default: /etc/pgpool-II/pool_hba.conf)<br>  -f, --config-file=CONFIG_FILE<br>                      Set the path to the pgpool.conf configuration file<br>                      (default: /etc/pgpool-II/pgpool.conf)<br>  -k, --key-file=KEY_FILE<br>                      Set the path to the pgpool key file<br>                      (default: /root/.pgpoolkey)<br>                      can be over ridden by PGPOOLKEYFILE environment variable<br>  -F, --pcp-file=PCP_CONFIG_FILE<br>                      Set the path to the pcp.conf configuration file<br>                      (default: /etc/pgpool-II/pcp.conf)<br>  -h, --help          Print this help<br><br>Start options:<br>  -C, --clear-oidmaps Clear query cache oidmaps when memqcache_method is memcached<br>                      (If shmem, discards whenever pgpool starts.)<br>  -n, --dont-detach   Don&#39;t run in daemon mode, does not detach control tty<br>  -x, --debug-assertions   Turns on various assertion checks, This is a debugging aid<br>  -D, --discard-status Discard pgpool_status file and do not restore previous status<br>  -d, --debug         Debug mode<br><br>Stop options:<br>  -m, --mode=SHUTDOWN-MODE<br>                      Can be &quot;smart&quot;, &quot;fast&quot;, or &quot;immediate&quot;<br><br>Shutdown modes are:<br>  smart       quit after all clients have disconnected<br>  fast        quit directly, with proper shutdown<br>  immediate   the same mode as fast<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 9, 2019 at 9:18 AM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">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">&gt; I have a fairly (I thought) straightforward pgpool setup, the backend is<br>
&gt; postrgresql database that is streaming to a hot standby. I am testing the<br>
&gt; failover, but when I shutdown the primary database instance and open the<br>
&gt; standby database instance for read/write, i get this message. &quot;health check<br>
&gt; failed on node 0 but failover is disallowed for the node&quot;. What setting am<br>
&gt; I missing here?<br>
&gt; <br>
&gt; <br>
&gt; Applicable section from the log:<br>
&gt; <br>
&gt; Jul 5 10:45:14 pgpool1 pgpool-II-10[32640]: [13-1] 2019-07-05 10:45:14: pid<br>
&gt; 32640: ERROR: failed to make persistent db connection Jul 5 10:45:14<br>
&gt; pgpool1 pgpool-II-10[32640]: [13-2] 2019-07-05 10:45:14: pid 32640: DETAIL:<br>
&gt; connection to host:&quot;<a href="http://10.12.1.225:5432" rel="noreferrer" target="_blank">10.12.1.225:5432</a>&quot; failed Jul 5 10:45:14 pgpool1<br>
&gt; pgpool-II-10[32640]: [14-1] 2019-07-05 10:45:14: pid 32640: LOG: health<br>
&gt; check failed on node 0 but failover is disallowed for the node<br>
<br>
Strange.<br>
<br>
&gt; Here are the applicable sections from my pgpool.conf<br>
&gt; - Backend Connection Settings -<br>
&gt; <br>
&gt; backend_hostname0 = &#39;10.12.1.225&#39;<br>
&gt; backend_port0 = 5432<br>
&gt; backend_weight0 = 1<br>
&gt; backend_data_directory0 = &#39;/postgres/data/pgdata&#39;<br>
&gt; backend_flag0 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt; <br>
&gt; backend_hostname1 = &#39;10.12.1.61&#39;<br>
&gt; backend_port1 = 5432<br>
&gt; backend_weight1 = 1<br>
&gt; backend_data_directory1 = &#39;/postgres/data/pgdata&#39;<br>
&gt; backend_flag1 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt; <br>
&gt; master_slave_mode = on<br>
&gt; master_slave_sub_mode = &#39;stream&#39;<br>
&gt; health_check_period = 10<br>
&gt; health_check_timeout = 5<br>
&gt; health_check_user = &#39;nobody&#39;<br>
&gt; health_check_password = &#39;&#39;<br>
&gt; health_check_max_retries = 0<br>
&gt; health_check_retry_delay = 1<br>
&gt; connect_timeout = 10000<br>
&gt; failover_command = &#39;&#39;<br>
&gt; failback_command = &#39;&#39;<br>
<br>
I would like to confirm whether Pgpool-II properly recognizes those<br>
settings, especially backend_flag. Can you share the output of &quot;pgpool<br>
show backend&quot;?<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
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>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_5730110741277166000gmail_signature">Andrew W. Kerber<br><br>&#39;If at first you dont succeed, dont take up skydiving.&#39;</div>