Hi,
Trying out carp(4) and net/haproxy.
I have 2 nodes sharing a single IP using CARP. On each nodeiI have HAProxy and Apache running.
HAProxy binds the frontend to this VIP, and the backend to each webserver running on the nodes. Everything works fine, CARP moves the IP, HAProxy takes servers out of round-robin, etc.
Except for one thing:
What to do when HAProxy itself fails on the node serving the VIP Address ? How doiI get the CARP Master on the other node?
- Under LinuxiI could use keepalived, seems like this port is no longer maintained on FreeBSD.
- A second CARP address, being master on the other node and distribute the 2 VIPs via DNS. Each HAProxy bind its frontends to both VIPs.
- Build own scripts to check if HAProxy is running and force the node to backup if it's not running.
- ?
Any other ideas?
Thanks in advance!
gerald
Trying out carp(4) and net/haproxy.
I have 2 nodes sharing a single IP using CARP. On each node
HAProxy binds the frontend to this VIP, and the backend to each webserver running on the nodes. Everything works fine, CARP moves the IP, HAProxy takes servers out of round-robin, etc.
Except for one thing:
What to do when HAProxy itself fails on the node serving the VIP Address ? How do
- Under Linux
- A second CARP address, being master on the other node and distribute the 2 VIPs via DNS. Each HAProxy bind its frontends to both VIPs.
- Build own scripts to check if HAProxy is running and force the node to backup if it's not running.
- ?
Any other ideas?
Thanks in advance!
gerald