Merge "Add a active-standby mode memcached in haproxy"
This commit is contained in:
commit
fdbfd96d14
@ -895,6 +895,19 @@ listen mariadb
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if enable_memcached | bool %}
|
||||
listen memcached
|
||||
mode tcp
|
||||
timeout client 3600s
|
||||
timeout server 3600s
|
||||
option tcplog
|
||||
option tcpka
|
||||
bind {{ kolla_internal_vip_address }}:{{ memcached_port }}
|
||||
{% for host in groups['memcached'] %}
|
||||
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }} check inter 2000 rise 2 fall 5 {% if not loop.first %}backup{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if enable_opendaylight | bool %}
|
||||
listen opendaylight_api
|
||||
bind {{ kolla_internal_vip_address }}:{{ opendaylight_haproxy_restconf_port }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user