From ae7f6dee65a529a7babefbc1976c6c0dba6effc4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 22 Sep 2018 20:36:25 +0000 Subject: [PATCH] there is NOT any copr frontends in production yet, comment them out --- roles/haproxy/templates/haproxy.cfg | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index ac866d03d0..d3623ba15f 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -595,18 +595,21 @@ frontend copr-frontend bind 0.0.0.0:10070 default_backend copr-backend +{% if env == "production" %} +#backend copr-backend +# balance hdr(appserver) +# server copr-frontend01 copr-frontend01:80 check inter 10s rise 1 fall 2 +# server copr-frontend02 copr-frontend02:80 check inter 10s rise 1 fall 2 +# option httpchk GET /api_3/ +{% else %} backend copr-backend balance hdr(appserver) -{% if env == "production" %} - server copr-frontend01 copr-frontend01:80 check inter 10s rise 1 fall 2 - server copr-frontend02 copr-frontend02:80 check inter 10s rise 1 fall 2 -{% else %} # XXX mizdebsk 2018-08-28: kill this conditional after F29 beta freeze is litfed cookie SERVERID insert indirect nocache server copr-frontend01 copr-frontend01:80 check inter 10s rise 1 fall 2 cookie copr-frontend01 server copr-frontend02 copr-frontend02:80 check inter 10s rise 1 fall 2 cookie copr-frontend02 -{% endif %} option httpchk GET /api_3/ +{% endif %} # 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.