[pgpool-committers: 2726] pgpool: Finally moving towards code completion. This commit includes lo
Muhammad Usama
m.usama at gmail.com
Wed Oct 14 21:52:10 JST 2015
Finally moving towards code completion. This commit includes lots of code
re-organization, and bug fixes found while testing. There are still some
debugging prints exist in code which will be removed when testing of the feature
will be complete.
As part of the watchdog enhancements this commit makes the following user
visible configuration related changes
Configuration parameter "wd_priority" is added. This new parameter can be used
to elevate the current watchdog node priority in leader elections
A new "external" method for wd_lifecheck_method is added to pool configuration,
setting, wd_lifecheck_method = "external" would mean that pgpool watchdog will
disable its internal lifecheck and external
New configuration parameter "wd_plunge_command" is added. Which can be assigned
the command to be executed when the master/coordinator watchdog node resigns
from the coordinator responsibilities.
Branch
------
watchdog_enhancement
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=98bac9202ffabe62d9d4029111deb32ab00da69b
Modified Files
--------------
src/config/pool_config.c | 123 +-
src/config/pool_config.l | 49 +-
src/include/pcp/pcp.h | 14 +-
src/include/pool.h | 2 +-
src/include/pool_config.h | 38 +-
src/include/watchdog/watchdog.h | 278 +-
src/include/watchdog/wd_ext.h | 159 -
src/include/watchdog/wd_ipc_commands.h | 80 +
src/include/watchdog/wd_ipc_defines.h | 82 +
src/include/watchdog/wd_json_data.h | 51 +
src/include/watchdog/wd_lifecheck.h | 70 +
src/include/watchdog/wd_utils.h | 56 +
src/libs/pcp/pcp.c | 14 +-
src/main/main.c | 2 +-
src/main/pgpool_main.c | 108 +-
src/pcp_con/pcp_worker.c | 52 +-
src/pcp_con/recovery.c | 5 +-
src/sample/pgpool.conf.sample | 11 +-
src/sample/pgpool.conf.sample-master-slave | 11 +-
src/sample/pgpool.conf.sample-replication | 12 +-
src/sample/pgpool.conf.sample-stream | 11 +-
src/tools/pcp/pcp_frontend_client.c | 25 +-
src/tools/pgmd5/pool_config.c | 151 +-
src/utils/pool_process_reporting.c | 10 +
src/watchdog/Makefile.am | 10 +-
src/watchdog/Makefile.in | 28 +-
src/watchdog/watchdog.c | 4687 ++++++++++++++++++++++++++--
src/watchdog/wd_child.c | 4124 ------------------------
src/watchdog/wd_commands.c | 764 +++++
src/watchdog/wd_escalation.c | 446 +--
src/watchdog/wd_heartbeat.c | 38 +-
src/watchdog/wd_if.c | 409 ++-
src/watchdog/wd_init.c | 121 -
src/watchdog/wd_interlock.c | 292 --
src/watchdog/wd_json_data.c | 423 +++
src/watchdog/wd_lifecheck.c | 634 ++--
src/watchdog/wd_packet.c | 1769 -----------
src/watchdog/wd_ping.c | 28 +-
src/watchdog/wd_utils.c | 201 ++
39 files changed, 7443 insertions(+), 7945 deletions(-)
More information about the pgpool-committers
mailing list