LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Apache: Simple load balancing

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Apache: Simple load balancing
From: krimo <aait@xxxxxxx>
Date: Fri, 01 Jul 2005 16:58:07 +0200
Hi,

I want to test the direct routing method to load balance the trafic my servers deal with. I'm testing LVS without success. I have a load balancer (10.16.0.77 debian distro) and two apache servers 10.16.0.41 and 10.16.0.42. I've installed ipvsadm on the load balancer and load modules I need (kernel 2.6.10):

ip_vs_rr                1856  1
ip_vs_wlc 1888 0 # I know I don't need this one for direct routing
ip_vs                  88288  6 ip_vs_rr,ip_vs_wlc

I configured this rules on the director (my vip is 10.16.0.44):
ipvsadm -A -t 10.16.0.44:80
ipvsadm  -a -t 10.16.0.44:80 -r 10.16.0.41 -g

I test with an access to a simple php file: http://10.16.0.44/test.php. I look in the acces_log file of apache running on my first real server 10.16.0.41 but it's the apache running on the director that serve my test.php.

I also test with tcpdum (tcpdump -n -i any port 80) but the director does not forward anything. I hope friendly users of LVS could help me ;)



Regards.
aaits.


<Prev in Thread] Current Thread [Next in Thread>