LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 08-12-2007, 04:26 PM   #1
Jimerson
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
Webserver Failover using RH5


I am looking for a good way to do an apache failover using RH5.

I do not need loadbalancing. Just something so that in the event of Hardware or Software failure something that will automatically move it over with no downtime.

I have multiple servers to do this with,and they are all located on the same network so bandwidth is not an issue.

Any suggestions?

Thanks,
Jim
 
Old 08-13-2007, 03:20 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
is something like this simple enough? http://www.onlamp.com/pub/a/onlamp/2...inuxhacks.html lots of it depends on what you consider to be a failure really. you could quite possibly mine down to the result of a db query with LVS or something, failing over if the returned data is below a certain threshold or similar. but this example will just ping the other ip.
 
Old 08-14-2007, 08:36 AM   #3
Jimerson
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Original Poster
Rep: Reputation: 0
This could be a much easier solution that what I was looking at...

I now just need to find a script that can be edited to check and see if the webserver (Port 80) is responding.


Thanks so much for your help.

James.
 
Old 08-14-2007, 01:57 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
i would probably look at using wget or curl to dip a little further in to the config, as it's about as easy anyway. i'm sure you can adapt the script to replace a ping with a curl.
 
  


Reply

Tags
apache, failover


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo cache RH5 updates locally?? madmax7774 Linux - Software 1 06-28-2007 09:58 AM
opening ports on RH5.2 on a sparc box MochaMan Linux - Networking 3 01-18-2007 01:14 AM
webserver failover imi@tux Linux - Networking 1 05-23-2006 03:47 AM
w98se, w2k and rh5.1 altogether... how? stil77 Linux - Newbie 2 01-15-2004 11:45 AM
Old RH5.2 user coming back with RH9.0 with many problems franciscofossa Linux - Newbie 1 07-17-2003 07:32 AM


All times are GMT -5. The time now is 06:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration