Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I have 2 servers, how can I make them one to the Internet?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Thu Apr 22, 2004 3:57 am    Post subject: I have 2 servers, how can I make them one to the Internet? Reply with quote

If my company name is www.mysite.com and someone is trying to access my site, how do I get the Internet to recognize xxx.yyy.zzz.89 and xxx.yyy.zzz.90 as the same site?

If the xxx....89 server goes down, how does xxx....90 take over?

If you ping www.mysite.com, will it find one or both servers?

Be verbose, I'm a little confused. :roll:
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Thu Apr 22, 2004 4:52 am    Post subject: Reply with quote

There are a couple of ways to start down this path: round-robin DNS entries or reverse proxies are the two that immediately spring to mind. I'm sure there many dedicated solutions available.

With round-robin DNS the name www.arbitrarydomain.com is has two or more A entries pointing to different IP addresses. A separate name is also given to each IP address so they may be separately accessed. Reverse entries should point to the shared name. The BIND, or other, DNS server will allocate one or other of the addresses (round-robin or some other method) to name resolution requests as they arrive. Load is effectively spread but this does not provide failover on its own.

The reverse proxy is a machine that accepts connections and either serves them from cache, or goes to an internal server for the content. Combined with a DNS it can cycle through an arbitrary number of backend servers while the end-user only ever sees a single address.

Handling failover can be as simple as removing the dead server from the DNS rotation. The dead address with still be cached on the client side, so this may take a short while to take effect.

Care must be taken with web applications to ensure that state information is available across all web servers because subsequent request may not be directed to the same server.

You should probably also read at http://www.linuxvirtualserver.org/
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum