Solved

Load balancing two Apache web servers

Posted on 2001-06-18
3
194 Views
Last Modified: 2010-03-18
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
0
Comment
Question by:mjsmith99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:tdaoud
ID: 6207726

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
0
 
LVL 40

Accepted Solution

by:
jlevie earned 200 total points
ID: 6209151
If you want that kind of availability you really need to get a load balancer box, say like a Cisco Local Director. It will load share between the two web servers and properly handle fail-over. Doing things with DNS servers is a kludge that won't work very well because Internet nameservers (that your clients user for name resolution) will cache the DNS data and consequently there will be some delay between when the DNS changes and when the clients find out about the change.
0
 

Expert Comment

by:CleanupPing
ID: 9078776
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.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question