| 
 
Purcocks, Graham a écrit :
 
Whats the output from
Ipvsadm?
 
Here is the output of ipvsadm command:
TCP  10.16.0.44:www rr
-> 10.16.0.41:www               Route   1      0          0 
It seems to be OK no? (I'm testing only with one real server at the moment)
 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.
 
 |