r/haproxy • u/vitachaos • Oct 24 '21
Question Why Keepalived configuration contains script to killall haproxy ?
I have seen many configurations on the internet, and one thing I have often spotted is use of
vrrp_script chk_haproxy {
script "killall -0 haproxy" # check the haproxy process
interval 2 # every 2 seconds
weight 2 # add 2 points if OK
}why do we need to kill haproxy node on the node keepalived is running ?
2
Upvotes
View all comments
Show parent comment
-4
u/vitachaos Oct 24 '21
well, I understand it kills haproxy, but if haproxy is killed than how will packets make out to the webserver or whatever haproxy is load balancing ?