HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Problem: How To Set Up A Loadbalanced High-Availability Apache Cluster (http://www.howtoforge.com/forums/showthread.php?t=35573)

ndr 27th May 2009 14:06

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?

falko 28th May 2009 11:43

Quote:

Originally Posted by ndr (Post 190653)
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 (Post 190653)
receive="Test Page"

This is the text that should be in that file.

ndr 28th May 2009 15:30

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.

ndr 28th May 2009 17:33

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!

falko 29th May 2009 18:42

Did you check the logs in /var/log (especially syslog)?

ndr 13th August 2009 22:45

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.


All times are GMT +2. The time now is 21:13.

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