<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'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 "smart", "fast", or "immediate"<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 <<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>> 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">> I have a fairly (I thought) straightforward pgpool setup, the backend is<br>
> postrgresql database that is streaming to a hot standby. I am testing the<br>
> failover, but when I shutdown the primary database instance and open the<br>
> standby database instance for read/write, i get this message. "health check<br>
> failed on node 0 but failover is disallowed for the node". What setting am<br>
> I missing here?<br>
> <br>
> <br>
> Applicable section from the log:<br>
> <br>
> Jul 5 10:45:14 pgpool1 pgpool-II-10[32640]: [13-1] 2019-07-05 10:45:14: pid<br>
> 32640: ERROR: failed to make persistent db connection Jul 5 10:45:14<br>
> pgpool1 pgpool-II-10[32640]: [13-2] 2019-07-05 10:45:14: pid 32640: DETAIL:<br>
> connection to host:"<a href="http://10.12.1.225:5432" rel="noreferrer" target="_blank">10.12.1.225:5432</a>" failed Jul 5 10:45:14 pgpool1<br>
> pgpool-II-10[32640]: [14-1] 2019-07-05 10:45:14: pid 32640: LOG: health<br>
> check failed on node 0 but failover is disallowed for the node<br>
<br>
Strange.<br>
<br>
> Here are the applicable sections from my pgpool.conf<br>
> - Backend Connection Settings -<br>
> <br>
> backend_hostname0 = '10.12.1.225'<br>
> backend_port0 = 5432<br>
> backend_weight0 = 1<br>
> backend_data_directory0 = '/postgres/data/pgdata'<br>
> backend_flag0 = 'ALLOW_TO_FAILOVER'<br>
> <br>
> backend_hostname1 = '10.12.1.61'<br>
> backend_port1 = 5432<br>
> backend_weight1 = 1<br>
> backend_data_directory1 = '/postgres/data/pgdata'<br>
> backend_flag1 = 'ALLOW_TO_FAILOVER'<br>
> <br>
> master_slave_mode = on<br>
> master_slave_sub_mode = 'stream'<br>
> health_check_period = 10<br>
> health_check_timeout = 5<br>
> health_check_user = 'nobody'<br>
> health_check_password = ''<br>
> health_check_max_retries = 0<br>
> health_check_retry_delay = 1<br>
> connect_timeout = 10000<br>
> failover_command = ''<br>
> failback_command = ''<br>
<br>
I would like to confirm whether Pgpool-II properly recognizes those<br>
settings, especially backend_flag. Can you share the output of "pgpool<br>
show backend"?<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>'If at first you dont succeed, dont take up skydiving.'</div>