LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: why my ipvsadm display nothing?but it can work!

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: why my ipvsadm display nothing?but it can work!
From: Roberto Nibali <ratz@xxxxxxxxxxxx>
Date: Mon, 22 Dec 2003 09:23:37 +0100
Hi

> IP Virtual Server version 1.0.9 (size=65536)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  192.168.1.45:http rr
>   -> 192.168.1.41:http            Route   1      0          0         
>   -> 192.168.1.42:http            Route   1      0          1         
>   -> 192.168.1.40:http            Route   1      0          0         

As you should be able to spot, your 192.168.1.42 RS does have count 1 in
the InActConn. Which means this RS has just successfully served a
potential customer/client of your site.

The reason why you didn't see it in the ActiveConn column is that the
time interval between that specific connection establishment and its
termination is very small. And it is small because either you have a
fast uplink or a webpage with static content or both.

Of course if you call ipvsadm 20 seconds later, the above doesn't apply
anymore as most replies are done withing 20 seconds even if the page is
dynamic.

If you want to see something, you should invoke ipvsadm with watch, like so:

watch -n 1 'ipvsadm -Ln'

or if you want it 'realtime' (warning, eats a lot of CPU time):

watch -n -1 'ipvsadm -Ln'

Then have someone connect or wait until someone connects and you'll see
a positive integer in the ActiveConn column. This should render you even
more happy then ;).

Best regards,
Roberto Nibali, ratz
-- 
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc

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