From abdc3271d57cf19ee4b2669acc3bc8cc70357101 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 7 Apr 2017 12:47:00 +0000 Subject: [PATCH] Re-enable pdc-web01 in staging only. --- roles/haproxy/templates/haproxy.cfg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 496f9e7992..cc0a1aa181 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