Load balance based on the appserver header.

This commit is contained in:
Kevin Fenzi 2017-01-17 21:55:04 +00:00
parent 09aa0bc052
commit b3849bf68f

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