zabbix: haproxy config reworking

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2023-11-09 14:52:30 +00:00
parent ee3bac3470
commit 8b0581bcad
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D

View file

@ -488,12 +488,25 @@ backend fedmsg-raw-zmq-inbound-backend
timeout connect 86400000 timeout connect 86400000
server busgateway01 busgateway01:9941 weight 1 maxconn 16384 server busgateway01 busgateway01:9941 weight 1 maxconn 16384
{% if env == "staging" %}
frontend zabbix-frontend frontend zabbix-frontend
bind 0.0.0.0:10068 bind 0.0.0.0:10068
default_backend zabbix-backend default_backend zabbix-backend
backend zabbix-backend backend zabbix-backend
balance hdr(appserver) balance hdr(appserver)
server zabbix01 zabbix01:80 check inter 10s rise 1 fall 2 server zabbix.stg zabbix.stg:80 check inter 10s rise 1 fall 2
# option httpchk GET / # option httpchk GET /
# http-check expect status 200,401,302 # http-check expect status 200,401,302
{% if env == "production" %}
frontend zabbix-frontend
bind 0.0.0.0:10068
default_backend zabbix-backend
backend zabbix-backend
balance hdr(appserver)
server zabbix zabbix:80 check inter 10s rise 1 fall 2
# option httpchk GET /
# http-check expect status 200,401,302
{% endif %}