From b3849bf68f1b4341326084c12dee0c3ba9522267 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 17 Jan 2017 21:55:04 +0000 Subject: [PATCH] Load balance based on the appserver header. --- roles/haproxy/templates/haproxy.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 9c94f5e6ba..c7783ed0e4 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -407,7 +407,7 @@ listen ipa01 0.0.0.0:10061 {% if env == "production" and 'phx2' in inventory_hostname %} listen kojipkgs 0.0.0.0:10062 - balance roundrobin + balance hdr(AppServer) server kojipkgs01.phx2.fedoraproject.org kojipkgs01.phx2.fedoraproject.org:80 check inter 10s rise 1 fall 2 server kojipkgs02.phx2.fedoraproject.org kojipkgs02.phx2.fedoraproject.org:80 check inter 10s rise 1 fall 2 option httpchk GET /