Man page - wd_cli(1)
Packages contas this manual
- pcp_stop_pgpool(1)
- pgpool_adm_pcp_attach_node(3)
- pcp_attach_node(1)
- pgpool_adm_pcp_node_count(3)
- pcp_recovery_node(1)
- pcp_log_rotate(1)
- pcp_detach_node(1)
- pcp_proc_info(1)
- pcp_node_info(1)
- pcp_common_options(1)
- pgpool_adm_pcp_pool_status(3)
- pg_enc(1)
- wd_cli(1)
- pgproto(1)
- pgpool_adm_pcp_health_check_stats(3)
- pcp_proc_count(1)
- pcp_watchdog_info(1)
- pcp_node_count(1)
- pcp_health_check_stats(1)
- pcp_reload_config(1)
- pcp_pool_status(1)
- pcp_invalidate_query_cache(1)
- pcp_promote_node(1)
- watchdog_setup(1)
- pgpool_setup(1)
- pgpool_adm_pcp_proc_info(3)
- pgpool_adm_pcp_node_info(3)
- pgpool_adm_pcp_detach_node(3)
- pg_md5(1)
- pgpool(8)
- pcp_stop_pgpool(1)
- pgpool_adm_pcp_attach_node(3)
- pcp_attach_node(1)
- pgpool_adm_pcp_node_count(3)
- pcp_recovery_node(1)
- pcp_log_rotate(1)
- pcp_detach_node(1)
- pcp_proc_info(1)
- pcp_node_info(1)
- pcp_common_options(1)
- pgpool_adm_pcp_pool_status(3)
- pg_enc(1)
- wd_cli(1)
- pgproto(1)
- pgpool_adm_pcp_health_check_stats(3)
- pcp_proc_count(1)
- pcp_watchdog_info(1)
- pcp_node_count(1)
- pcp_health_check_stats(1)
- pcp_reload_config(1)
- pcp_pool_status(1)
- pcp_invalidate_query_cache(1)
- pcp_promote_node(1)
- watchdog_setup(1)
- pgpool_setup(1)
- pgpool_adm_pcp_proc_info(3)
- pgpool_adm_pcp_node_info(3)
- pgpool_adm_pcp_detach_node(3)
- pg_md5(1)
- pgpool(8)
apt-get install pgpool2
apt-get install pgpool2
Manual
| WD_CLI(1) | pgpool-II 4.7.1 Documentation | WD_CLI(1) |
NAME
wd_cli - Watchdog Command Line Interface (CLI) utility for the external health-check system integration.
SYNOPSIS
wd_cli [operation...] [node search option...] [option...]
DESCRIPTION
wd_cli Provides a convenient and easy to use interface to interact with watchdog and perform health check related node operations.
OPERATIONS
-i
--info
-I NEW_STATUS
--inform=NEW_STATUS
NODE SEARCH OPTIONS
-a
--all
-n WATCHDOG_NODE_ID
--node-id=WATCHDOG_NODE_ID
-N NODE_NAME
--node-name=NODE_NAME
-H HOSTNAME
--node-host=HOSTNAME
-P PORT_NO
--node-port=PORT_NO
OPTIONS
-k KEY
--auth-key=KEY
-f CONFIG_FILE
--config-file=CONFIG_FILE
-s SOCKET_DIR
--socket-dir=SOCKET_DIR
-p PORT_NO
--ipc-port=PORT_NO
-m message_string
--message=message_string
-v
--verbose
-V
--version
-d
--debug
-h
--help
EXAMPLE
When some external health-check system is configured to monitor the health of Pgpool-II cluster and it detects a node failure. wd_cli utility can be used to pass this information to Pgpool-II cluster so that it can take the appropriate actions.
#inform Pgpool-II about node named RN-110 failure
wd_cli --inform DEAD -N 'RN-110' -p 9001 -m 'Pgpool node with name RN-110 is not reachable'
#inform Pgpool-II about node-id 10 failure
wd_cli --inform DEAD -n 10 -m 'Pgpool node with ID 10 is not responding'
Similarly to inform Pgpool-II about the node is alive again.
#inform Pgpool-II about node-id 10 re-joining
wd_cli --inform ALIVE -n 10 -m 'Pgpool node with ID 10 is reachable again'
wd_cli can also be used to get the current status of cluster nodes.
wd_cli -f simple_conf/watchdog/pgpool_wd1.conf --info -v --all Total Watchdog nodes configured for lifecheck: 2 ***************** Node ID: 0 Node Status code 4 Node Status: LEADER Node Name: localhost:9991 Linux localhost.localdomain Node Host: localhost Node WD Port: 9001 Node Pgpool Port: 9991 Node ID: 1 Node Status code 7 Node Status: STANDBY Node Name: localhost:9992 Linux localhost.localdomain Node Host: localhost Node WD Port: 9002 Node Pgpool Port: 9992
| 2023 | pgpool-II 4.7.1 |