summaryrefslogtreecommitdiffstats
path: root/roles/haproxy/templates
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2017-01-16 20:05:56 +0000
committerKevin Fenzi <kevin@scrye.com>2017-01-16 20:05:56 +0000
commitce7555b6429e77d1d88dc1f863f241012f204bcf (patch)
tree4030221a519a0a545a20d49b838f89f74731aa3f /roles/haproxy/templates
parent998c8482f9755ee0c33202a3c8fb6cca6176af45 (diff)
downloadansible-ce7555b6429e77d1d88dc1f863f241012f204bcf.tar.gz
ansible-ce7555b6429e77d1d88dc1f863f241012f204bcf.tar.xz
ansible-ce7555b6429e77d1d88dc1f863f241012f204bcf.zip
try and tweak haproxy to balance by source
Diffstat (limited to 'roles/haproxy/templates')
-rw-r--r--roles/haproxy/templates/haproxy.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg
index 058147e33..f60950f15 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 /