PCP_WATCHDOG_INFO(1)
π PCP_WATCHDOG_INFO(1) π
okay bestie so this is pcp_watchdog_info from the pgpool-II 4.7.2 Documentation era, and it's literally the glow-up spotlight for your watchdog cluster π₯ she's a PCP command, so she shows up in your terminal wearing her full PCP_WATCHDOG_INFO(1) name tag.
β¨ NAME β¨
pcp_watchdog_info β shows off the watchdog status of the Pgpool-II, no cap
πΈ SYNOPSIS πΈ
pcp_watchdog_info [options...] [watchdog_id]
π¦ DESCRIPTION π¦
pcp_watchdog_info pulls up the tea β on whichever node ID you hand it. That's the whole vibe: give her a node, she gives you the info.
π OPTIONS π
-nwatchdog_id /--node-id=watchdog_idβ the index of the other Pgpool-II you want the info for, bestie.
Index 0 gets your own watchdog info β it's giving self-reflection π
If you just... don't pass it? Then she gets you info for all the watchdog nodes. Everyone gets a turn in the group chat.
Other options
- Honestly, the rest live over at
pcp_common_options(1). Go say hi to them there π«Ά
π EXAMPLE π
Here's what the output is giving:
$ pcp_watchdog_info -h localhost -p 9898 -U postgres
Password:
3 3 YES server1:9999 Linux server1.localdomain server1
server1:9999 Linux server1.localdomain server1 9999 9000 4 LEADER 0 MEMBER
server2:9999 Linux server2.localdomain server2 9999 9000 7 STANDBY 0 MEMBER
server3:9999 Linux server3.localdomain server3 9999 9000 7 STANDBY 0 MEMBER
And the result is in this order, so you can actually read the vibe correctly:
The very first output line spills the watchdog cluster info:
- total watchdog nodes in the cluster
- total watchdog nodes in the cluster with active membership
- the local node's escalation status
- the leader node name
- the leader node host
Then it's the list of watchdog nodes, one per line:
- node name
- hostname
- pgpool port
- watchdog port
- current node state
- current node state name
- current cluster membership status
- current cluster membership status name
The --verbose option is lowkey the translator here β she helps the output actually make sense. For example:
$ pcp_watchdog_info -h localhost -p 9898 -U pgpool -v
Password:
Watchdog Cluster Information
Total Nodes : 3
Remote Nodes : 2
Member Remote Nodes : 2
Alive Remote Nodes : 2
Nodes required for quorum: 2
Quorum state : QUORUM EXIST
Local node escalation : YES
Leader Node Name : server1:9999 Linux server1.localdomain
Leader Host Name : server1
Watchdog Node Information
Node Name : server1:9999 Linux server1.localdomain
Host Name : server1
Delegate IP : 192.168.56.150
Pgpool port : 9999
Watchdog port : 9000
Node priority : 1
Status : 4
Status Name : LEADER
Membership Status : MEMBER
Node Name : server2:9999 Linux server2.localdomain
Host Name : server2
Delegate IP : 192.168.56.150
Pgpool port : 9999
Watchdog port : 9000
Node priority : 1
Status : 7
Status Name : STANDBY
Membership Status : MEMBER
Node Name : server3:9999 Linux server3.localdomain
Host Name : server3
Delegate IP : 192.168.56.150
Pgpool port : 9999
Watchdog port : 9000
Node priority : 1
Status : 7
Status Name : STANDBY
Membership Status : MEMBER
peak readability, honestly π₯
okay that's the whole page bestie, go forth and vibe check your watchdog πβ¨
mwah π this was pgpool-II 4.7.2, dated 2023, signing off as your one and only PCP_WATCHDOG_INFO(1) β ily, stay quorum π«Άπ
π¦ where this page comes from
- ubuntu stonking: pgpool2 4.7.2-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms