LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-03-2006, 12:35 PM   #1
dranobob
LQ Newbie
 
Registered: Aug 2005
Location: Atlanta, GA
Distribution: Fedora Core 4, Suse 9.3
Posts: 12

Rep: Reputation: 0
Redundant servers


Okay not sure how to proceed on this one. I currently host 2 websites off the server at my house. One is an online store i host for a friend. I would like to be able to build another fedora box to act as a backup. Both would be behind my linksys router which passes port 80 requests to the first one already. Is there a solution that if the main server went down that the backup server would automatically start handling the port 80 requests.

I have some thoughts of writing a php script on the backup server that would check some text off a home page on the other server. If say after 3 checks it couldn't recieve the page, it would issue the shell command to start it's httpd service and try to issue the same command to the main server to shut its down. This way just in case the backup server was wrong, both will not be operating as the web server. then the script would issue an email or text message to me to let me know the switch happened. The only unknown is can you have a linksys router send port 80 requests to more than one box. (I will check this tonight).

I would love the challenge, but if there is already a open source software or another method to make this happen...I would love the time savings.
 
Old 04-03-2006, 12:53 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
check out all the solutions you need at linux-ha.org a simple heartbeat with an implementation of hsrp is fairly simple to achieve.
 
Old 04-03-2006, 01:57 PM   #3
dranobob
LQ Newbie
 
Registered: Aug 2005
Location: Atlanta, GA
Distribution: Fedora Core 4, Suse 9.3
Posts: 12

Original Poster
Rep: Reputation: 0
I'll give it a try. Just so I'm clear, I checked their site and it appears that it creates a cluster. In a simple passive/active case, the heartbeat software monitors the services I choose to, in this case apache, and in the event it is unhappy with the results of the test, it shuts down apache, and then releases the ip on the first server and gives it to the backup serverso the router never notices a difference and then starts the backups apache. So I presume originally you set the backup server another IP and if the switch occurs, the IP will be changed and the first presumed dead.

Also can you have it run additional scripts when it does the switch, say an email script to let me know the switch occured
 
Old 04-03-2006, 02:59 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well that site contains information about a large range of different HA techniques and implementations, but essentially you just want a failover IP address.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redundant Servers: where do I start? walterbyrd Linux - Software 2 02-20-2006 07:41 AM
redundant web servers exodist Linux - Networking 6 12-21-2005 02:09 AM
redundant qmail servers (primary & secondary) littleking Linux - Networking 3 08-15-2004 10:18 PM
Redundant Linux Servers mephitic Linux - General 3 07-13-2004 12:33 PM
Redundant Proxy Servers or Clusters alasdair247 Linux - Newbie 0 10-01-2002 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:33 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