Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
The Internet

DNS based Website Failover Solutions? 39

Chase asks: "I run a couple of websites(including for my work). I'd like to have a backup web server that people would hit when my server goes down. My primary host is on my companies T1 line and even though I've had my server die once the most common reason for my sites to be offline is that our T1 goes down. I've looked at the High-Availability Linux Project but it seems that almost everything there is for failover using ip takeover which isn't an option if my network link dies and my backup server is on a different network. ZoneEdit seems to offer what I'm looking for but I'm wanting a do it myself solution. The only software I've found is Eddie and it seems to have stopped development around 2000. I know DNS based failover doesn't give 100% uptime but with a low cache time and decent monitoring it seems like it's the best solution for having my backup server at a differnt location and on a differnt network. Anyone know of a good solution? (Using Linux and/or Solaris hosts)"
This discussion has been archived. No new comments can be posted.

DNS based Website Failover Solutions?

Comments Filter:
  • It depends.... (Score:3, Insightful)

    by RedHat Rocky ( 94208 ) on Tuesday May 18, 2004 @09:34AM (#9182659)
    First thing you need to do if decide what kind of downtime is acceptable. 5 seconds, minutes, hours?

    Then you need to look at your services you're offering from your website, is it all static, session-based or what?

    Combine the two to figure out how much your downtime is going to actually cost you. For example, if my personal site, which is static, is down for 5 hours the only person who is going to really care is me. And I don't pay myself much. :)

    Flipside, on an ecommerce site with shopping cart, that 5 minutes of downtime could cost a lot of lost sales.

    In otherwords, your redundancy plan should match how much you think you'll lose if Bad Things Happen.

    Now, you're on a T1 with some personal stuff, let's assume 5 minutes is fine, money lost is minimal, but any more time will be irritating. Your content is static. Here's a cheap DIY solution and yes it's DNS based.

    Setup identical webservers on seperate networks. Have those servers also be the nameservers for the website in question. Configure each webserver to only answer an A query as itself. The ttl for the A record needs to be low (5-10 minutes). Now, if one of the servers/networks goes down, clients can only resolve DNS by reaching a server; server down, can't query it, they'll hit the other server.

    This method has some downsides, as mentioned bandwidth usage will be higher as more DNS queries will be made. Session-based stuff also won't work, no guarantee which server any given request will hit.
  • by fdragon ( 138768 ) on Tuesday May 18, 2004 @01:10PM (#9185315)
    Most registrars will provide you the ability to run at least 2, and usually more name servers (I think 6 is the limit). By using this fact, and the the fact that a client will request dns and use the first authoritive response it gets we can impliment something like the following.

    Colocation facility 1 machine gets named "DNS1.domain.com" and is a reverse proxy to your real site. Colocation facility 2 machine gets named "DNS2.domain.com" and is also a reverse proxy to your real site. Add cache content sharing between these two servers for extra availability.

    You will also be adding DNS servers to each one of those colocated servers. They run as masters (not slaves). The contents of the zones will make each server the single point of contact for your content.

    With this setup the following happens when users request your content :

    Browsers requests DNS lookup.

    Client name server queries all the DNS servers for that domain for the request. First response wins.

    Browser contacts your colocation server for content.

    Colocation server checks its cache of your site.

    if content does not exist, it will ask the cache partner for content, and then will query the real site.

    Real site serves content to the proxy server at a much reduced rate.

Remember, UNIX spelled backwards is XINU. -- Mt.

Working...