[pgpool-committers: 6057] pgpool: Add parameter enable_consensus_with_half_votes to configure ma

Muhammad Usama m.usama at gmail.com
Fri Aug 30 00:51:00 JST 2019


 Add parameter enable_consensus_with_half_votes to configure majority rule calculations

 Pgpool-II takes the decision of quorum existence and failover consensus after
 receiving the exact 50% of votes when the watchdog cluster is configured with
 an even number of nodes. With enable_consensus_with_half_votes parameter,
 users can tell Pgpool-II, whether the distributed consensus in an even number
 of nodes cluster requires (n/2) or ((n/2) +1) votes to decide the majority.

 The patch is drafted by "Tatsuo Ishii <ishii at sraoss.co.jp>" and I have made
 few modifications on top of that.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=69419ac44d3dcde0c4bdafbf2ebf2d1137b6d273

Modified Files
--------------
doc/src/sgml/watchdog.sgml                         | 60 ++++++++++++++++
src/config/pool_config_variables.c                 |  9 +++
src/include/pool_config.h                          |  7 ++
src/include/pool_config_variables.h                |  2 +-
src/sample/pgpool.conf.sample                      | 10 +++
src/sample/pgpool.conf.sample-logical              | 10 +++
src/sample/pgpool.conf.sample-master-slave         | 10 +++
src/sample/pgpool.conf.sample-replication          | 10 +++
src/sample/pgpool.conf.sample-stream               | 10 +++
src/test/regression/tests/004.watchdog/master.conf |  2 +
.../regression/tests/004.watchdog/standby.conf     |  1 +
src/watchdog/watchdog.c                            | 82 ++++++++++++++++++----
12 files changed, 200 insertions(+), 13 deletions(-)



More information about the pgpool-committers mailing list