Proposal: Add lifecheck started status to pcp_watchdog_info.

From: Koshino Taiki <koshino(at)sraoss(dot)co(dot)jp>
To: "pgpool-hackers(at)lists(dot)postgresql(dot)org" <pgpool-hackers(at)lists(dot)postgresql(dot)org>
Subject: Proposal: Add lifecheck started status to pcp_watchdog_info.
Date: 2026-03-26 08:15:54
Message-ID: TY4PR01MB173744EDFBDCE68DDECAE746B9456A@TY4PR01MB17374.jpnprd01.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-hackers

Hi,
This patch adds a new field, "Lifecheck Started", to the pcp_watchdog_info output.
Currently, users need to inspect logs to verify whether the lifecheck has started on each node.
This change allows the status to be checked directly from a single command, making it easier to verify behavior and perform regression testing.
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
Lifecheck Started : YES

Best regards,
Taiki Koshino<koshino(at)sraoss(dot)co(dot)jp>
SRA OSS K.K.
TEL: 03-5979-2701 FAX: 03-5979-2702
URL: https://www.sraoss.co.jp/

Attachment Content-Type Size
v9-0001-Add-Lifecheck-Started-status-to-pcp_watchdog_info.patch application/octet-stream 13.9 KB

Responses

Browse pgpool-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2026-03-26 10:19:02 Re: Rotate SSL certificates on reload (SIGHUP) without restart
Previous Message Tatsuo Ishii 2026-03-26 08:07:16 Re: Rotate SSL certificates on reload (SIGHUP) without restart