From ce7555b6429e77d1d88dc1f863f241012f204bcf Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 16 Jan 2017 20:05:56 +0000 Subject: [PATCH] try and tweak haproxy to balance by source --- 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 058147e332..f60950f15f 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 hdr(appserver) + balance source 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 /