I have the following setup:
I have configured high availability between two load balancers (HAProxy) so that if HAProxy1 get down, the floating IP gets transferred to the other load balancer HAProxy2, hence all the clients will get the response from HAProxy2, which at the back-end is doing LB among the sme two webserver. This is for removing the single point of failure in case of only one HAProxy.
Whenever I stops the hearbeat in HAProxy1, the floating IP goes to HAProxy2. But I want to configure such that whenever the process haproxy
goes down, the floating IP should get assigned to HAProxy2. Can someone tell me how to implement it ?
Best Answer
in OCF you will not get the HAProxy, you need use the LSB class. Run below command to see the haproxy under lsb class
then
and you are done.