I have two load-balancing servers running mod_proxy_balancer. Each server balances between two web servers.
Now I'd like to find a way to share a single IP address between those two load-balancing servers, in a way that will fail over.
Is it possible to use just heartbeat (without ldirectord) to share an IP address, with mod_proxy_balancer?
If so, could someone point me at some instructions, or suggest the way to proceed?
All the heartbeat tutorials I've seen assume that you're using ldirectord, or pacemaker (which I can't use because of restrictions on my cloud servers).
You can use the IPaddr / IPaddr2 Resource Agent in Heartbeat to accomplish this. In your haresources file (under /etc/ha.d/ for me) you would add a line like
If Heartbeat is already running, you'll need to start the resource manually
If for any reason the server that the IP is active on fails, the secondary will pick up the resource automagically.
You do not need ldirectord or pacemaker for this.