try and tweak haproxy to balance by source

This commit is contained in:
Kevin Fenzi 2017-01-16 20:05:56 +00:00
parent 998c8482f9
commit ce7555b642

View file

@ -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 /