Clean up haproxy config for copr

This commit is contained in:
Mikolaj Izdebski 2018-09-27 09:25:46 +00:00
parent ae45945a4b
commit 0a67a43d54

View file

@ -591,26 +591,13 @@ backend freshmaker-backend
server freshmaker-frontend01 freshmaker-frontend01:80 check inter 20s rise 2 fall 3 server freshmaker-frontend01 freshmaker-frontend01:80 check inter 20s rise 2 fall 3
option httpchk GET /api/1/builds/ option httpchk GET /api/1/builds/
{% if env == "production" %} {% if env == "staging" %}
#frontend copr-frontend
# bind 0.0.0.0:10070
# default_backend copr-backend
{% else %}
frontend copr-frontend frontend copr-frontend
bind 0.0.0.0:10070 bind 0.0.0.0:10070
default_backend copr-backend default_backend copr-backend
{% endif %}
{% 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 backend copr-backend
balance hdr(appserver) balance hdr(appserver)
# XXX mizdebsk 2018-08-28: kill this conditional after F29 beta freeze is litfed
cookie SERVERID insert indirect nocache cookie SERVERID insert indirect nocache
server copr-frontend01 copr-frontend01:80 check inter 10s rise 1 fall 2 cookie copr-frontend01 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 server copr-frontend02 copr-frontend02:80 check inter 10s rise 1 fall 2 cookie copr-frontend02