LinuxQuestions.org
Review your favorite Linux distribution.
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-06-2009, 02:43 PM   #1
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Question Dual Apache Servers, one for fail over - how to manage at network level


Hi all, time to pick the brains of the professionals!

So at work we have two Apache servers, one is production and the other is a backup server... In the event the production server goes down we switch over to the backup server. The tricky part is that they are both front facing and have different static IP addresses... So I can do this a couple of ways...

1) Have one server which manages the connections to each server (but then I would also need a redundant server here - could be VM's I suppose)

2) Get a router which allows for Virtual Server configuration, meaning I place a router in front of the two servers assigning it one IP which the DNS points to. In the event the production server fails I log into the router and point the Virtual Server to the backup Apache server.

3) Make backup copies of all the network configuration files on the backup server and in the event the production server crashes I could simply change the IP of the backup server to the production servers IP.

Any comments and suggestions would be much appreciated as I currently do not have any method other than changing the network configuration. Lucky for me my collocation service provider is a 5-10 minute walk from my office
 
Old 07-06-2009, 03:30 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by bskrakes View Post
Hi all, time to pick the brains of the professionals!

So at work we have two Apache servers, one is production and the other is a backup server... In the event the production server goes down we switch over to the backup server. The tricky part is that they are both front facing and have different static IP addresses... So I can do this a couple of ways...

1) Have one server which manages the connections to each server (but then I would also need a redundant server here - could be VM's I suppose)

2) Get a router which allows for Virtual Server configuration, meaning I place a router in front of the two servers assigning it one IP which the DNS points to. In the event the production server fails I log into the router and point the Virtual Server to the backup Apache server.

3) Make backup copies of all the network configuration files on the backup server and in the event the production server crashes I could simply change the IP of the backup server to the production servers IP.

Any comments and suggestions would be much appreciated as I currently do not have any method other than changing the network configuration. Lucky for me my collocation service provider is a 5-10 minute walk from my office
Well, you can do this in a number of different ways.

You can get a hardware gadget (like Radware), that will manage that for you. Just plug in servers, and Radware can monitor things, and if one fails, it'll send the traffic to the other. That buys you things like being able to load-balance if you need to, or add more servers later on, and still have just one IP address that's front-facing. Downside it, it's something else you have to manage/maintain.....

The way I've done it in the past (for non-critical things, mind you), has been to install a second NIC into each box, and connect them via a crossover cable. A script on the backup box will just ping the primary every minute or so...if it didn't get a reply, it would try on the 'public' address too. If no reply on either...it would run the appropriate ifconfig statements to move IP addresses over, etc., to make it assume the identity of the primary box, and send out an email to let me know what happened. I could go fix the primary unit, and bring it back up, while services stayed online.

Not a perfect solution, though...if the machine hung up, and could be ping'ed, but was otherwise unresponsive, it wouldn't do anything (yes, I know you COULD add things in for wget calls, etc.... ), and you had to make sure the web pages were in sync between both boxes. But it was very low-cost and easy to implement.

If it's a critical system, spend the money on a 'real' device, like you mentioned in point 2....
 
Old 07-10-2009, 02:36 PM   #3
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Original Poster
Rep: Reputation: 32
I like the idea of RADWARE as this is a critical system which requires constant up-time... Just have to price it out.

Thanks for the reply!
 
  


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 do servers manage client in linux heygokul Linux - Newbie 3 01-04-2009 03:18 AM
Using NIS to manage logins across my servers? Swakoo Linux - Server 2 01-22-2008 11:40 PM
multiple X servers fail to start kazuma333 Linux - Software 3 03-28-2007 12:36 PM
Install network card Intel PRO/1000 MT Dual Servers adapter Alex_Saf Fedora 3 03-17-2005 11:30 AM
Dual Apache Servers BorgKiller Linux - Software 2 09-28-2004 06:43 AM

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

All times are GMT -5. The time now is 06:00 AM.

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