
This patch checks that haproxy is alive and running. It does this by using socat to talk to the haproxy socket. That socket will only respond successfully when haproxy is active and functional. Change-Id: I528588d5742071103c28109a69842a6f935232c2 Closes-Bug: #1478570
21 lines
392 B
Django/Jinja
21 lines
392 B
Django/Jinja
vrrp_script check_alive {
|
|
script "/check_alive.sh"
|
|
interval 2
|
|
fall 2
|
|
rise 10
|
|
}
|
|
|
|
vrrp_instance Floating {
|
|
state MASTER
|
|
interface {{ api_interface }}
|
|
virtual_router_id 51
|
|
priority {{ groups['rabbitmq'].index(inventory_hostname) }}
|
|
advert_int 1
|
|
virtual_ipaddress {
|
|
{{ kolla_internal_address }}
|
|
}
|
|
track_script {
|
|
check_alive
|
|
}
|
|
}
|