Update 'haproxy.yml'

This commit is contained in:
2024-05-03 19:01:52 +00:00
parent f9b59633a9
commit 4eb923dc15

View File

@@ -48,3 +48,26 @@
script "/usr/bin/nc localhost 6443" script "/usr/bin/nc localhost 6443"
interval 5 interval 5
} }
vrrp_script chk_haproxy {
script "pidof haproxy"
interval 2
}
vrrp_instance VI_2 {
state MASTER
interface eth0
virtual_router_id 101
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 2222
}
virtual_ipaddress {
10.10.0.3
}
track_script {
chk_haproxy
}
}