LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Differences between ipvsadm and /proc/net/ip_vs

To: David Donchez <david.donchez@xxxxxxxxxxxx>
Subject: Re: [lvs-users] Differences between ipvsadm and /proc/net/ip_vs
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Thu, 2 Dec 2010 09:28:17 +0900
On Wed, Dec 01, 2010 at 07:08:31PM +0100, David Donchez wrote:
> Hi all,
> 
> I have strange difference between ipvsadm output and /proc/net/ip_vs
> 
> See:
> 
> TCP  xxxxxxxxxxxxxxxx wrr persistent 50
>   -> 10.10.1.1:www                 Route   100    1          14       
>   -> 10.10.1.2:www                 Route   100    1          14       
>   -> 10.10.1.3:www                 Route   100    1          59       
> 
> TCP  xxxxxxxxxxxxxxxx wrr persistent 12500 FFFFFFFF
>   -> 0A100103:0050      Route   100    2          57       
>   -> 0A100102:0050      Route   100    0          15       
>   -> 0A100101:0050      Route   100    0          15   
>
> Anoyone knows can it can be possible ? Or which is the right output ?

Hi David,

I believe that the difference in the active and inactive connections
[ (1, 14), (1, 14), (1, 59) vs (2, 57), (0, 15), (0, 15) ] is most likely
due to the measurements having been taken at (slightly?) different times.

The difference in the persistence timeout (50 vs 12500) is due
to different units being used. 50 is in seconds while 12500 is in HZ.
It seems that the value of HZ is 250 on your system.

Lastly, the addresses and ports output by ip_vs are expressed in
hexadecimal and are the same values as those reported by ipvsadm.


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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