Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 26, 2010 5:39 pm 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
Hello,

Let's say that I enter several A records with different IPs but same host name:
(1) do I get load balancing between the different IPS?

(2) Is is a decent way to implement failover between datacenters?

thanks


Top
   
 Post subject:
PostPosted: Wed May 26, 2010 5:50 pm 
Offline
Senior Newbie

Joined: Sat Mar 29, 2008 10:52 pm
Posts: 18
As far as failover goes, I would say no, because it may as well relay one of your IPs that is down.

Adding multiple IPs to the same host, I'm not sure that's even rfc compliant, but I'm no authority on that, so I don't know.


Top
   
 Post subject:
PostPosted: Wed May 26, 2010 8:18 pm 
Offline
Senior Member

Joined: Thu Oct 08, 2009 5:07 pm
Posts: 99
Look up 'Round Robin DNS'


Top
   
 Post subject:
PostPosted: Thu May 27, 2010 1:03 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
If a hostname has multiple IP addresses assigned to it, the DNS server will hand out a list of all of them (up to a certain limit), but not always in the same order. Clients usually only care about the first IP address in the list, so different clients end up connecting to different IP addresses. It's a basic form of load balancing.

As for failover, no, it doesn't work. Suppose you assign 3 IP addresses to a hostname. And one of those servers goes down. Unless you remove that server from the DNS asap, approximately one third of your visitors will keep trying to connect to the server that is down. Some browsers will try another IP address if the first connection attempt times out, but that usually takes 30-60 seconds so the visitor will probably just quit.

The DNS can be controlled using the Linode API, though. So you could write a script that monitors your servers and automatically changes the DNS if one of them goes down. But even with the lowest TTL value, some of your users will still see ~10 minutes of downtime.

Linode gives you automatic IP failover, by the way. Try it.


Top
   
 Post subject:
PostPosted: Thu May 27, 2010 3:02 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
hybinet wrote:
Linode gives you automatic IP failover, by the way. Try it.

In the same datacenter, and not 100% automatic. A watchdog has to notice the other has gone down, and instruct our infrastructure to move the IP to the new Linode with gratuitous ARP.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Last edited by jed on Thu May 27, 2010 6:08 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Thu May 27, 2010 3:16 pm 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
The Linode's DNS manager refreshes every 15 minutes; why 15 minutes? why not every minute for instance?


Top
   
 Post subject:
PostPosted: Thu May 27, 2010 3:27 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
jcr wrote:
The Linode's DNS manager refreshes every 15 minutes; why 15 minutes? why not every minute for instance?

I've never felt that the DNS is the appropriate place to configure failover. Load balancing, maybe (there's better ways to do that too), but not failover. There are numerous problems with doing so. The biggest one is probably resolver caches, as has already been covered in this thread. The DNS itself isn't really designed to be a high-speed update process.

That said, there's a few technical reasons the DNS manager regenerates on the schedule that it does.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Thu May 27, 2010 3:35 pm 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
Quote:
I've never felt that the DNS is the appropriate place to configure failover.


How could I move all the traffic from my linode in Newark to my linode in Dallas when the Newark's datacenter becomes unresponsive without using DNS?

Linode is such a good service but this issue of failover between datacenters is bugging me!

Could you elaborate on those technical reasons that make the schedule the way it is? Thanks


Top
   
 Post subject:
PostPosted: Thu May 27, 2010 3:51 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
jcr wrote:
The Linode's DNS manager refreshes every 15 minutes; why 15 minutes? why not every minute for instance?


My experience, from back when I ran DNS servers:

There's 96 15-minute intervals in a day, so generating a meaningful serial number for the SOA becomes a simple and stateless affair: YYYYMMDDXX, where XX is the number of minutes since midnight integer-divided by 15.

Plus, the zone regeneration process can take some number of minutes as it is.

...

So, when are those pesky HTTP folks going to start supporting SRV records? :-)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group