Fixes #21358. Failover with half votes.

This commit is contained in:
Andrea Dell'Amico 2021-05-07 11:37:19 +02:00
parent a714e9775b
commit 5c550d3a7f
Signed by untrusted user: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,9 @@ pgpool_white_function_list: ''
pgpool_black_function_list: 'nextval,setval'
pgpool_allow_sql_comments: 'on'
pgpool_fail_over_on_backend_error: 'on'
# Important: set to off when the cluster has an even number of nodes and they are 4 or more
# See https://www.pgpool.net/docs/latest/en/html/runtime-watchdog-config.html#GUC-ENABLE-CONSENSUS-WITH-HALF-VOTES
pgpool_enable_consensus_with_half_votes: 'on'
pgpool_relcache_expire: 3600
#
pgpool_memory_cache_enabled: False

View File

@ -394,6 +394,7 @@ failback_command = ''
# %% = '%' character
{% if pgpool_version is version_compare('4.1.4', '>=') %}
enable_consensus_with_half_votes = {{ pgpool_enable_consensus_with_half_votes }}
failover_on_backend_error = {{ pgpool_fail_over_on_backend_error }}
{% else %}
fail_over_on_backend_error = {{ pgpool_fail_over_on_backend_error }}