LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: 2 node virtual server with webstone.

To: g4165217@xxxxxxxxxxxxxxxxxxxx
Subject: Re: 2 node virtual server with webstone.
Cc: linux-virtualserver@xxxxxxxxxxxx
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Tue, 9 Mar 1999 17:04:18 +0800 (CST)

On Wed, 10 Mar 1999 g4165217@xxxxxxxxxxxxxxxxxxxx wrote:

> Hello,
> I have test vs-0.8 with 2 server (with local node, tunneling feature, 
> weighted round robin)
> and I set it up as this...
> 
> *** Server 1 (load balancer + web server)
> - IP add. = 192.168.0.2
> - virtual IP eth0:0 = 192.168.0.1
>       echo "1" > /proc/sys/net/ipv4/ip_forward
>       ifconfig eth0:0 192.168.0.1 netmask 255.255.255.192 arp up
>       ippfvsadm -A -t 192.168.0.1:80 -R 192.168.0.2 -w 1
>       ippfvsadm -A -t 192.168.0.1:80 -R 192.168.0.3 -w 1
>       ifconfig tunl0 192.168.0.1 up
> 
> *** Server 2 (web server)
> - IP add. = 192.168.0.3
>       ifconfig tunl0 192.168.0.1 up
> 
> I test it with webstone on the other machine ... yep, it work ... but
> the load is not well balance (server 1 's load is 40, server 2 is 0.2) 
> ... and the webstone result is too lower than 1 server (170 Connections
> /s compare to 600+ Connections /s) ... I can't figure out why it's too
> low ...  but when I run "ifconfig" it show that the tunnel interface on
> server 2 is never used ( TX:0 RX:0 )? 

I don't know why the tunnel interface on server 2 has never got any
packets. There must be something wrong.

Please send me the output of 'ippfvsadm -L' and 'ifconfig' on the server 1
and the output of 'ifconfig' on the server 2, maybe I can help.

You can make your configuration simple to diagnosis, for example the
server 1 can be configured as follows:
        echo "1" > /proc/sys/net/ipv4/ip_forward
        ippfvsadm -A -t 192.168.0.2:80 -R 127.0.0.1 -w 2
        ippfvsadm -A -t 192.168.0.2:80 -R 192.168.0.3 -w 3

> 
>                                                               Regards,
>                                                               Nartpong.
> 


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