Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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).

share|improve this question
1  
Perhaps this? linuxjournal.com/article/5862?page=0,0 –  Richard Nov 22 '11 at 15:39

1 Answer 1

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

IPaddr::172.16.20.160

If Heartbeat is already running, you'll need to start the resource manually

/etc/ha.d/resource.d/IPaddr 172.16.20.160 start

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.