I have 3 servers, 1 as load balancer and 2 as web-servers(apache tomcat) hosting some jsp pages. I want to add one more load balancer in active/passive mode to avoid SPOF and below is the expected setup.
lb1--> eth0=220.127.116.11, eth1=192.168.1.5 web1--> eth1=192.168.1.6 web2--> eth1=192.168.1.7 lb2--> eth0=18.104.22.168, eth1=192.168.1.8
I have seen many
heartbeat configuration to do this but I am not sure in case of virtual ip sharing where I am trying to achieve this without any more ip or ip sharing request(Rackspace). Generally it's said floating/virtual ip is the
public ip in the
haresource file which is shared between the lbs and I am asking is there any possibility to do this with virtual
private ip to avoid one more public ip cost. But the final output should be,
lb2 should be answering on behalf of
lb1 if lb1 is down.
And one more thing to be considered is, all the registered DNS domain names(site names) are pointed to public ip(22.214.171.124) of
lb1 where it redirect to backend web servers(ofcourse I know that same config is maintained on lb2). Anybody has any hints to achieve this without requesting one more public ip if possible with the above minimal setup. I'm new to heartbeat!
Thanks in Advance!