diff options
author | shuai chen <chenshuai@huawei.com> | 2015-12-15 11:15:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-12-15 11:15:50 +0000 |
commit | 68f4d2a4cfe706c6e7194b270e061261403b1e2d (patch) | |
tree | ad22092f45cca42052a98989db90fcdb6ae31e14 /deploy/adapters/ansible/roles/ha/templates | |
parent | 25cf6081b5cef33aec03fe76093dd7b87d11c249 (diff) | |
parent | 3e7d82a8f6527755c8eee5788235807dbb8a3df0 (diff) |
Merge "fix some memcached configuration error"
Diffstat (limited to 'deploy/adapters/ansible/roles/ha/templates')
-rw-r--r-- | deploy/adapters/ansible/roles/ha/templates/haproxy.cfg | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg b/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg index 0778bb13..7d783a30 100644 --- a/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg +++ b/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg @@ -169,12 +169,16 @@ listen proxy-ceilometer_api_cluster listen proxy-dashboarad bind {{ public_vip.ip }}:80 - option tcpka - option httpchk - option tcplog - balance source + mode http + balance source + capture cookie vgnvisitor= len 32 + cookie SERVERID insert indirect nocache + option forwardfor + option httpchk + option httpclose + rspidel ^Set-cookie:\ IP= {% for host,ip in haproxy_hosts.items() %} - server {{ host }} {{ ip }}:80 weight 1 check inter 2000 rise 2 fall 5 + server {{ host }} {{ ip }}:80 cookie {{ host }} weight 1 check inter 2000 rise 2 fall 5 {% endfor %} listen stats |