Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th May 2009, 14:06
ndr ndr is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem: How To Set Up A Loadbalanced High-Availability Apache Cluster

In the tutorial, the setup requires a couple of entries in the ldirectord.conf file that I don't understand. The following:
request="ldirector.html"
receive="Test Page"
I'm not sure why this needs to be specified in a config file in order for the Apache failover to occur. When I tried just creating a random file on both Apache servers and stopped one, it didn't failover to the second Apache server. Does anyone know why this is?
Reply With Quote
Sponsored Links
  #2  
Old 28th May 2009, 11:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by ndr View Post
request="ldirector.html"
The load balancers try to fetch this file from the web servers to see if the web servers are still up.
Quote:
Originally Posted by ndr View Post
receive="Test Page"
This is the text that should be in that file.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th May 2009, 15:30
ndr ndr is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! I was thinking it was just to run a test, but I see that it is a file used to monitor the web server at all times, even in production.
Reply With Quote
  #4  
Old 28th May 2009, 17:33
ndr ndr is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default New Problem

I have loadb1/loadb2 setup and webserver1/webserver2 setup. Testing as follows:

loadb1 - down
loadb2 - up
webserver1 - up
webserver2 - up
PASS

loadb1 - up
loadb2 - down
webserver1 - up
webserver2 - up
PASS

loadb1 - up
loadb2 - up
webserver1 - down
webserver2 - up
FAIL

loadb1 - up
loadb2 - up
webserver1 - up
webserver2 - down
PASS

So it seems that everything works, with the exception of when webserver1 is not running. The directors are not transferring requests to webserver 2. What information would be helpful to help diagnose the problem here?

Thanks!
Reply With Quote
  #5  
Old 29th May 2009, 18:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Did you check the logs in /var/log (especially syslog)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 13th August 2009, 22:45
ndr ndr is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Question

I've looked at syslog on all 4 servers and cannot figure out why this occurs. I've since rebuilt the entire setup only to find it does the same thing. Therefore, if webserver1 goes down, webserver2 pages aren't served up. Not sure why...

Any suggestions would be greatly appreciated. I followed the tutorial to every detail, which is VERY detailed.
Reply With Quote
Reply

Bookmarks

Tags
apache, cluster, high-availability, loadbalanced, lvs

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig Squid or Apache - Where is my problem toolswizard Installation/Configuration 1 5th March 2009 10:54
Joining High avalibilty Apache Cluster (Based on Ubuntu 8.10/8.04) and File server razor92 HOWTO-Related Questions 1 9th February 2009 20:22
Virtual users... Ubuntu 8.04 spaceuser HOWTO-Related Questions 12 19th June 2008 08:04
questions for SuSE 10.1 and Apache cluster petros Installation/Configuration 2 28th May 2008 11:18
Loadbalanced High-Availability Apache Cluster manurro HOWTO-Related Questions 4 10th April 2007 15:59


All times are GMT +2. The time now is 17:10.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.