mjsmith99
asked on
Load balancing two Apache web servers
Hi all,
The company I work for wants to ensure that a web application is (almost) always available. The application is quite simple, just serving static content in a large table on a single page (auto-refreshing every 60 seconds).
It gets its data from another server (cluster) every few seconds. So, if I had two web servers they would work perfectly well independently. But I dont want users to have to use a different URL when their primary server is down.
Is there a simple way in Linux (I'm using RH 7.0 but willing to change if need be) to allow the two servers to act as one? I imagine that each would have its own IP address and share another IP address. The users would access the shared address.
I really dont want to use a third box (or fourth) box to direct the traffic. Is this possible ?
Thanks in Advance,
Mike
mjsmith99@hotmaildotcom
The company I work for wants to ensure that a web application is (almost) always available. The application is quite simple, just serving static content in a large table on a single page (auto-refreshing every 60 seconds).
It gets its data from another server (cluster) every few seconds. So, if I had two web servers they would work perfectly well independently. But I dont want users to have to use a different URL when their primary server is down.
Is there a simple way in Linux (I'm using RH 7.0 but willing to change if need be) to allow the two servers to act as one? I imagine that each would have its own IP address and share another IP address. The users would access the shared address.
I really dont want to use a third box (or fourth) box to direct the traffic. Is this possible ?
Thanks in Advance,
Mike
mjsmith99@hotmaildotcom
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
mjsmith99:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
I can imagine that on your dns server, you can write a small script that keeps on checking the availability of each server and if one goes down it re-assigns the IP addresses to the other (live) one, and maybe return it back to normal when it comes up, otherwise I see it very hard without re-assigning the IP address to make people to go to another server.
Good Luck,
Tarik