On Thu, 2010-12-02 at 14:09 +0100, David Donchez wrote: > But which one must i trust for active connections ? I'm working on a > project, and this difference is very important in my case. > > Maybe ipvsadm output add a connection which is not a " real " connection > from a client ?
Try to remember that "cat /proc/net/ip_vs" and "ipvsadm -Ln" are practically the same thing, except the latter decodes information into a more human-readable format. In your case, one ActiveConn on each of two realservers had gone into Inactive state (that is, closing down in FIN_WAIT state or similar) and on the other one ActiveConn has changed to that state, with two other InActConns fully closing and being removed from the table. With such low figures, you'll see dramatic differences between stats with each "snapshot". If you're handling, say, 30000 conns/sec then you get far less "slippage" when carrying out this exercise. As to which one to trust: you can probably pull in /proc/net/ip_vs more quickly and with less overhead than running ipvsadm, but then you'll have to post-process it. If you run it through ipvsadm, remember to use the "-x" feature to get real numbers rather than K,M,G aggregates. Graeme
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - [email protected] Send requests to [email protected] or go to http://lists.graemef.net/mailman/listinfo/lvs-users
