d4science-ghn-cluster: Reconfigure the dev pgpool cluster to run with HA enabled. Tweak some parameters to achieve a better reliability.
This commit is contained in:
parent
6b6fb1c24f
commit
e0bc74182b
|
@ -127,6 +127,7 @@ pgpool_memqcache_memcached_host: localhost
|
|||
pgpool_memqcache_memcached_port: 11211
|
||||
pgpool_memqcache_expire: 0
|
||||
pgpool_memqcache_auto_cache_invalidation: 'on'
|
||||
pgpool_serialize_accept: 'off'
|
||||
# HA and watchdog
|
||||
pgpool_use_watchdog: 'off'
|
||||
pgpool_wd_trusted_servers: 'localhost,localhost'
|
||||
|
|
|
@ -213,6 +213,8 @@ reset_query_list = 'ABORT; DISCARD ALL'
|
|||
# The following one is for 8.2 and before
|
||||
#reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
|
||||
|
||||
serialize_accept = {{ pgpool_serialize_accept }}
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# REPLICATION MODE
|
||||
|
@ -470,7 +472,7 @@ delegate_IP = '{{ pgpool_virtual_ip }}'
|
|||
# delegate IP address
|
||||
# If this is empty, virtual IP never bring up.
|
||||
# (change requires restart)
|
||||
ifconfig_path = '/sbin'
|
||||
if_cmd_path = '/sbin'
|
||||
# ifconfig command path
|
||||
# (change requires restart)
|
||||
if_up_cmd = 'ip_script addr add {{ pgpool_virtual_ip }}/{{ pgpool_virtual_netmask }} dev {{ ansible_default_ipv4.alias }}'
|
||||
|
@ -496,9 +498,10 @@ clear_memqcache_on_escalation = on
|
|||
# This should be off if client connects to pgpool
|
||||
# not using virtual IP.
|
||||
# (change requires restart)
|
||||
wd_escalation_command = ''
|
||||
wd_escalation_command = 'date >> {{ psql_log_dir }}/wd_pgpool_escalation.log'
|
||||
# Executes this command at escalation on new active pgpool.
|
||||
# (change requires restart)
|
||||
wd_de_escalation_command = 'date >> {{ psql_log_dir }}/wd_pgpool_de_escalation.log'
|
||||
|
||||
# - Lifecheck Setting -
|
||||
|
||||
|
@ -542,10 +545,6 @@ heartbeat_device0 = ''
|
|||
# and pgpool has root privilege.
|
||||
# (change requires restart)
|
||||
|
||||
#heartbeat_destination1 = 'host0_ip2'
|
||||
#heartbeat_destination_port1 = 9694
|
||||
#heartbeat_device1 = ''
|
||||
|
||||
{% else %}
|
||||
# -- query mode --
|
||||
|
||||
|
|
Loading…
Reference in New Issue