LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2010, 10:32 PM   #1
romeo_tango
Member
 
Registered: Nov 2006
Distribution: Mint
Posts: 148

Rep: Reputation: 15
Web Server Load Balancing using ldirectord and Apache


Hi,

Im having this problem with load balancer.

I already setup the load balancer and two servers behind it with this kind of topology

Code:
                     _ Server 1
request -> DIRECTOR /
                    \_
                       Server 2


DIRECTOR's (RHEL 5)     Virtual IP = 192.168.1.1
Server 1's (RHEL 4.4)   Virtual IP = 192.168.1.2
Server 2's (CentOS 5.3) Virtual IP = 192.168.1.3
The problem is when I try to hit the 192.168.1.1, it sometimes give me a HTTP 200 and sometimes it will timed out. I hit it using lynx -dump. It should return "Hello world!" if success.

But if we hit it directly to 192.168.1.2:80 and 192.168.1.3:80, it will return HTTP 200 which means no error and no timeout. Since the Server 1 is the same as Server 2 in configuration, are there somethings I missed here?

Another information is that I set the director using round robin algorithm, so everytime a successful hit returned from server 1, the next one is surely heading to Server 2 right? Based on the Apache's access log, I also knew that the timed out occured only when it is the Server 2's turn to handle the request.

Aside from the same httpd.conf and the same httpd version are there any things in the system level, kernel level that should be the same between those two servers?

Thanks.

Last edited by romeo_tango; 02-16-2010 at 10:48 PM.
 
Old 02-17-2010, 03:46 AM   #2
romeo_tango
Member
 
Registered: Nov 2006
Distribution: Mint
Posts: 148

Original Poster
Rep: Reputation: 15
ah, just found it here

Code:
http://www.howtoforge.com/efficient-high-available-loadbalanced-cluster-on-centos-5.3-direct-routing-method
I forgot the virtual loopback interface.

Thanks.
 
  


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
Web Load Balancing (apache+heartbeat+ldirector) : Unable to connect to real servers dipakbiswal Linux - Networking 1 11-08-2009 04:34 AM
Load Balancing With 2 ISP on LAN (problem with web site on the Server) smadon Linux - Networking 1 08-21-2008 01:58 AM
i need help for load balancing setting apache web server gnu_gcc Linux - Server 2 06-23-2008 03:06 PM
Web hosting / Load balancing phatboyz Linux - Networking 1 09-08-2006 06:10 AM
Load balancing for a web site czamora Linux - Software 2 06-12-2006 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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