Fixes #21358. Failover with half votes.
This commit is contained in:
parent
a714e9775b
commit
5c550d3a7f
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue