<div dir="ltr">Hi Ishii San<div><br></div><div>pcp_watchdog_info only gives the information of a single watchdog node which might not be enough in some certain situations. And as we are currently working on watchdog enhancements so I thought it would be good to also enhance the pcp_watchdog_info utility. I have created a patch to add a little more information about the watchdog cluster state and nodes in the output of pcp_watchdog_info.</div><div><br></div><div>Can you please have a look at the attached patch specially for</div><div><br></div><div>1-) If you are good with all the new information shown by pcp_watchdog_info utility or you want to add/remove something?</div><div><br></div><div>2-) inform watchdog info in pcp_worker violates the data serialization technique used by PCP server for other functions and adopts the JSON data formatted load to transmit the watchdog information to the client side. Although I am of the point of view that someday we should shift all the other functions to use JSON or some other serialization technique which is more adaptable and then the current proprietary format. But for the time being the watchdog informing part of PCP is different from all other. </div><div><br></div><div>with the new pcp_watchdog_info when node ID is given the utility shows the information of that specific node while ID =0 means the local watchdog node. And when no node ID is provided by user information of all nodes is shown</div><div><br></div><div>--example--</div><div><br></div><div><div><font face="monospace, monospace">[usama@localhost pgpool]$ bin/pcp_watchdog_info -h localhost -p 9893 -U postgres -v</font></div><div><font face="monospace, monospace">Password: </font></div><div><font face="monospace, monospace">Watchdog Cluster Information </font></div><div><font face="monospace, monospace">Total Nodes         : 3</font></div><div><font face="monospace, monospace">Remote Nodes        : 2</font></div><div><font face="monospace, monospace">Alive Remote Nodes  : 2</font></div><div><font face="monospace, monospace">In Network Error    : NO</font></div><div><font face="monospace, monospace">Local Node Escalated: NO</font></div><div><font face="monospace, monospace">Master Node Name    : Linux_localhost.localdomain_9992</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Watchdog Node Information </font></div><div><font face="monospace, monospace">Node Number    : 0</font></div><div><font face="monospace, monospace">Node Name      : Linux_localhost.localdomain_9993</font></div><div><font face="monospace, monospace">Host Name      : localhost</font></div><div><font face="monospace, monospace">Pgpool port    : 9993</font></div><div><font face="monospace, monospace">Watchdog port  : 9003</font></div><div><font face="monospace, monospace">Node priority  : 1</font></div><div><font face="monospace, monospace">status         : 7</font></div><div><font face="monospace, monospace">status Name    : STANDBY</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Node Number    : 1</font></div><div><font face="monospace, monospace">Node Name      : Linux_localhost.localdomain_9992</font></div><div><font face="monospace, monospace">Host Name      : localhost</font></div><div><font face="monospace, monospace">Pgpool port    : 9992</font></div><div><font face="monospace, monospace">Watchdog port  : 9002</font></div><div><font face="monospace, monospace">Node priority  : 1</font></div><div><font face="monospace, monospace">status         : 4</font></div><div><font face="monospace, monospace">status Name    : COORDINATOR</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Node Number    : 2</font></div><div><font face="monospace, monospace">Node Name      : Linux_localhost.localdomain_9991</font></div><div><font face="monospace, monospace">Host Name      : localhost</font></div><div><font face="monospace, monospace">Pgpool port    : 9991</font></div><div><font face="monospace, monospace">Watchdog port  : 9001</font></div><div><font face="monospace, monospace">Node priority  : 1</font></div><div><font face="monospace, monospace">status         : 7</font></div><div><font face="monospace, monospace">status Name    : STANDBY</font></div><div><br></div></div><div><br></div><div><br></div><div>Thanks</div><div>Best regards</div><div>Muhammad Usama</div><div><br></div></div>