diff options
-rw-r--r-- | roles/haproxy/templates/haproxy.cfg | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 496f9e799..cc0a1aa18 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -283,11 +283,14 @@ listen openqa 0.0.0.0:10044 listen pdc 0.0.0.0:10045 balance hdr(appserver) -## pdc-web01 is commented out because we don't currently know how to configure +{% if env == "staging" %} + server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2 +{% else %} +## pdc-web01 is absent because we don't currently know how to configure ## mod_auth_mellon to work when distributed across more than one app node. It ## expects to be able to share some state between requests in-process. Boo. - #server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2 server pdc-web02 pdc-web02:80 check inter 10s rise 1 fall 2 +{% endif %} option httpchk GET /rest_api/v1/ timeout server 3600000 timeout connect 3600000 |