New feature: cluster scope for pcp_stop_pgpool utility command
authorMuhammad Usama <m.usama@highgo.ca>
Mon, 4 May 2020 11:38:39 +0000 (16:38 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Mon, 4 May 2020 11:39:06 +0000 (16:39 +0500)
commit87e6e11c1931555e90a1cc65cc3ee79759ebaaab
treea17d6d5900cfa797b2d149c028f8a66e02f39858
parent3c68ae5a36814349b42e279628e54106a9ab2483
New feature: cluster scope for pcp_stop_pgpool utility command

Make pcp_stop_pgpool utility to terminate (optional) all the pgpool nodes in the
watchdog cluster
For that purpose added  "--scope=cluster/local" option in the pcp_stop_pgpool
utility to set the scope of the command. The scope could be either
'local' or 'cluster'

Along with that, the commit adds the infrastructure in watchdog for broadcasting
the custom commands over the watchdog network. This will make it easier to
implement the --scope=cluster for other PCP utilities.
12 files changed:
doc/src/sgml/ref/pcp_stop_pgpool.sgml
src/include/pcp/libpcp_ext.h
src/include/watchdog/watchdog.h
src/include/watchdog/wd_internal_commands.h
src/include/watchdog/wd_ipc_defines.h
src/include/watchdog/wd_json_data.h
src/libs/pcp/pcp.c
src/pcp_con/pcp_worker.c
src/tools/pcp/pcp_frontend_client.c
src/watchdog/watchdog.c
src/watchdog/wd_internal_commands.c
src/watchdog/wd_json_data.c