LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: Apache: Simple load balancing

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Apache: Simple load balancing
From: "Purcocks, Graham" <grahamp@xxxxxxxxxxxxx>
Date: Fri, 1 Jul 2005 11:28:14 -0400
Whats the output from

Ipvsadm?

Have you set up the VIP address on the servers? 

-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of krimo
Sent: 01 July 2005 15:58
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Apache: Simple load balancing

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>