On Thu, 9 Nov 2000, Ed Lazor wrote:
>
> >What you need is the second server to assume the primary server's IP address.
>
> What if they the two servers are at different ISP's?
>
This is a sticky problem, one that I've been working on for a year (off
and on).
When a DNS entry points to more than one IP address, the server typically
alternates between the IPs for each request. Unfortunately, the root
servers do the same thing, meaning the term Primary Name Server as used by
Network Solutions and company is wrong, the root servers point requests to
ALL the name server entries for a domain. They do NOT check to see if a
name server is up before responding (which makes sense, there are way too
many name servers out there to be doing that).
If the goal is strictly high availability, not load balancing, it could be
handled with DNS.
First, make each server the primary. In other words, both machines should
act like they are the proper server. Let's call them A and B, though you
could have A,B,C and D, etc.
Setup DNS such that A and B are both authoritative, ie, the root DNS
servers list A and B as name servers.
Then config A's DNS such that www.some.where points to A and B's DNS so
that www.some.where points to B.
When a web request is made, the client will first have to resolve the DNS,
which will control which server is eventually accessed. If the client
can't reach A, it won't resolve www.some.where -> A and will eventually
have to ask B.
Caveats:
If you have a web-based application that tries to maintain state
information, this will not work.
Fail over time in the case that A dies is controlled by the time to live
(TTL) of the DNS records. Set the TTL really low, you'll get lots of DNS
traffic; set TTL high and the fail over will take a while.
Traffic will be distributed amongst the web servers, but not evenly nor
based on load.
Not a great solution, but it is a solution.
Bill Carlson
--
Systems Programmer [EMAIL PROTECTED] | Opinions are mine,
Virtual Hospital http://www.vh.org/ | not my employer's.
University of Iowa Hospitals and Clinics |
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list