summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2015-12-10 06:52:34 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-12-10 06:52:35 +0000
commit01bf8315641200a49964d378d0ff88f43e7d8bf5 (patch)
tree1e64c6d17c126005bda0f7e8b963f5466f042a3c /deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
parente408668e84f138f69317ff63e68b823dfe80188b (diff)
parentf691dbc6f7b6d686012fce2f4f6ce59d4549d0fe (diff)
Merge "rabbitmq script refactor"
Diffstat (limited to 'deploy/adapters/ansible/roles/ha/templates/haproxy.cfg')
-rw-r--r--deploy/adapters/ansible/roles/ha/templates/haproxy.cfg13
1 files changed, 13 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg b/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
index 3d76a5bc..0778bb13 100644
--- a/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
+++ b/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
@@ -38,6 +38,19 @@ listen proxy-mysql
{% endif %}
{% endfor %}
+listen proxy-rabbit
+ bind {{ internal_vip.ip }}:5672
+ bind {{ public_vip.ip }}:5672
+
+ option tcpka
+ option tcplog
+ timeout client 3h
+ timeout server 3h
+ balance source
+{% for host,ip in haproxy_hosts.items() %}
+ server {{ host }} {{ ip }}:5672 weight 1 check inter 2000 rise 2 fall 5
+{% endfor %}
+
listen proxy-glance_registry_cluster
bind {{ internal_vip.ip }}:9191
bind {{ public_vip.ip }}:9191