LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Very high inactive connections

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Very high inactive connections
From: Horms <horms@xxxxxxxxxxxx>
Date: Fri, 7 May 2004 11:34:44 +0900
On Thu, May 06, 2004 at 01:03:24PM -0700, Peter Mueller wrote:
> > I have been watching my stats with lvs-rrd
> 
> Alexandre will be pleased.  Oooh nice colors! ;-)
> 
> > One thing that concerns me Is my Inactive Connections.
> > 
> > Is this something I need to me concerned with?
> > Check this out
> > http://gateway.unitnet.com/lvs.All.All.All.All.gif
> 
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.ipvsadm.html#ActiveCo
> nn
> 
> Inactive connections are nothing to worry about.  They are efficient and
> help for the next request :)

Umm, that isn't quite true. Certainly they are nothing to worry about.
But generally they have nothing to do with subsequent requests.

Most of the Inactive Connections will be from connections that have
recently been closed and the remainder will be from connections that are
not yet fully open - that is the three-way-handshake is in progress.
After a connection closes these hang around for about 2 minutes so that
any retransmitted packets from that connection are handled correctly
(discarded).

As HTTP generally involves short lived connections (I am assuming you
are using HTTP), if you have a lot of connections coming in, then at any
given time you will have a lot of connections that have closed within
the past 2 minutes. These are (the bulk of) your inactive connections.
And they really aren't anything to worry about.

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