From f691dbc6f7b6d686012fce2f4f6ce59d4549d0fe Mon Sep 17 00:00:00 2001 From: "carey.xu" Date: Fri, 4 Dec 2015 09:33:48 +0800 Subject: rabbitmq script refactor JIRA: COMPASS-177 Change-Id: I66698ac27a974c9c375e8da9fcb91f49f89227ed Signed-off-by: carey.xu --- deploy/adapters/ansible/roles/ha/templates/haproxy.cfg | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'deploy/adapters/ansible/roles/ha') 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 -- cgit 1.2.3-korg