LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2011, 12:27 AM   #1
rbalaa
Member
 
Registered: Mar 2010
Posts: 61

Rep: Reputation: 0
Auto redirect if server is down


Hi All,

Can I get some advice on where to look for setting up my web server A so that if I have to bring it down for maintenance, all web traffic will go to my backup server B. I thought about changing DNS entry but that will take time to update.

Thanks for your help in advance.
 
Old 07-21-2011, 08:57 AM   #2
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
Here are some options, each with their advantages and drawbacks.

- DNS updates can be scripted with the nsupdate command, but yeah, depending on the TTL of the A record, it can take a while to propagate. You could resolve that by issuing the nsupdate command, giving it some time to propagate, and then shutting down server A.

- If what you're looking for is instantaneous failover, you could look into a load balancer. There are software solutions for that, but they end up facing the same problem... you end up doing maintenance on the load balancing server. It's usually done by setting up another apache server as an http proxy.

- Big business tends to use an appliance for this function. They're not cheap.
 
Old 07-21-2011, 09:59 AM   #3
rbalaa
Member
 
Registered: Mar 2010
Posts: 61

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SL00b View Post
Here are some options, each with their advantages and drawbacks.

- DNS updates can be scripted with the nsupdate command, but yeah, depending on the TTL of the A record, it can take a while to propagate. You could resolve that by issuing the nsupdate command, giving it some time to propagate, and then shutting down server A.

- If what you're looking for is instantaneous failover, you could look into a load balancer. There are software solutions for that, but they end up facing the same problem... you end up doing maintenance on the load balancing server. It's usually done by setting up another apache server as an http proxy.

- Big business tends to use an appliance for this function. They're not cheap.
Thanks for your input. I think I'm goign to try duplicate IP for one domain name. Then disable round robin. And lower the TTL to 1/2 hour.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to redirect a subdomain to another server? machinakias Linux - Server 1 12-06-2010 03:41 PM
redirect email server Blackmon Linux - Newbie 5 05-22-2008 10:32 PM
help with script to redirect server traffic avenger756 Programming 8 05-03-2007 08:50 AM
how to redirect traffic from one server to another orko Linux - Networking 1 08-12-2006 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration