Solved

Load balancing two Apache web servers

Posted on 2001-06-18
3
193 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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
E-mail settings for Fail2ban 7 164
"uptime" high (200+) on RHEL6 but CPU usage is low... any ideas why? 4 111
Website content filtering at different level 5 95
ifconfig 4 119
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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