[pgpool-committers: 6704] pgpool: New feature: cluster scope for pcp_stop_pgpool utility command
Muhammad Usama
m.usama at gmail.com
Mon May 4 22:12:56 JST 2020
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.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=87e6e11c1931555e90a1cc65cc3ee79759ebaaab
Author: Muhammad Usama <m.usama at highgo.ca>
Modified Files
--------------
doc/src/sgml/ref/pcp_stop_pgpool.sgml | 17 ++++
src/include/pcp/libpcp_ext.h | 2 +-
src/include/watchdog/watchdog.h | 12 +++
src/include/watchdog/wd_internal_commands.h | 4 +-
src/include/watchdog/wd_ipc_defines.h | 15 +++-
src/include/watchdog/wd_json_data.h | 10 +++
src/libs/pcp/pcp.c | 7 +-
src/pcp_con/pcp_worker.c | 23 ++++-
src/tools/pcp/pcp_frontend_client.c | 29 ++++++-
src/watchdog/watchdog.c | 130 ++++++++++++++++++++++++++++
src/watchdog/wd_internal_commands.c | 50 +++++++++++
src/watchdog/wd_json_data.c | 118 +++++++++++++++++++++++++
12 files changed, 404 insertions(+), 13 deletions(-)
More information about the pgpool-committers
mailing list