zabbix: haproxy config reworking
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
parent
ee3bac3470
commit
8b0581bcad
1 changed files with 14 additions and 1 deletions
|
@ -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 %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue