diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 65c25d3bf1..f4c692ad9b 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -206,6 +206,12 @@ listen autocloud 0.0.0.0:10041 server autocloud-web02 autocloud-web02:80 check inter 10s rise 1 fall 2 option httpchk GET /autocloud/ +listen statscache 0.0.0.0:10042 + balance hdr(appserver) + server statscache-web01 statscache-web01:80 check inter 10s rise 1 fall 2 + server statscache-web02 statscache-web02:80 check inter 10s rise 1 fall 2 + option httpchk GET /statscache/ + # Apache doesn't handle the initial connection here like the other proxy # entries. This proxy also doesn't use the http mode like the others. # stunnel should be sitting on port 9939 (public) and redirecting