[pgpool-committers: 2691] pgpool: The next brick in the watchdog enhancement project, The majorit

Muhammad Usama m.usama at gmail.com
Mon Sep 14 04:21:30 JST 2015


The next brick in the watchdog enhancement project, The majority of this commit
contains the integration of lifecheck process with the new watchdog, Currently
only lifecheck using heartbeat is working and the query mode still has few TODOs.

The new design of watchdog decouples the life checking from the watchdog, Now
the lifecheck process communicates with the watchdog using the unix domain IPC
sockets and forward the events to watchdog using JSON data,
This effectively means after this we can easily use any external heartbeat or
life-check system with the pgpool-II watchdog.

Following are the remaining TODOs..
Escalation to master pgpool-II and virtual-IP monitoring system is still half cooked.
Removal of all the traces of old watchdog
Integration  of interlocking watchdog commands
Code organization and cleanup

Branch
------
watchdog_enhancement

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=9bc39ec76451bd0f09a16a9418d46fc9fbc27791

Modified Files
--------------
src/Makefile.am                 |    4 +-
src/Makefile.in                 |   13 +-
src/include/utils/json.h        |  310 ++++++++++
src/include/utils/json_writer.h |   64 +++
src/include/watchdog/watchdog.h |   24 +-
src/include/watchdog/wd_ext.h   |   30 +-
src/utils/json.c                | 1092 +++++++++++++++++++++++++++++++++++
src/utils/json_writer.c         |  260 +++++++++
src/watchdog/Makefile.am        |    1 +
src/watchdog/Makefile.in        |    5 +-
src/watchdog/watchdog.c         |   36 +-
src/watchdog/wd_child.c         | 1205 ++++++++++++++++++++++++++++++++-------
src/watchdog/wd_escalation.c    |  497 ++++++++++++++++
src/watchdog/wd_heartbeat.c     |   58 +-
src/watchdog/wd_if.c            |   62 +-
src/watchdog/wd_lifecheck.c     |  482 ++++++++++++----
src/watchdog/wd_packet.c        |   57 +-
17 files changed, 3754 insertions(+), 446 deletions(-)



More information about the pgpool-committers mailing list