LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Re: how many connections handled in Load Balancer

To: Michael Sparks <michael.sparks@xxxxxxxxx>
Subject: [lvs-users] Re: how many connections handled in Load Balancer
Cc: lvsp <lvsp@xxxxxxxxxxxx>, lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Thu, 20 Jan 2000 19:44:18 +0800
Michael,

Sorry for the delay.

Michael Sparks wrote:
> 
> Wensong,
> 
> How long are the connection entries held for ? (Column 8 of
> /proc/net/ip_masquerade ?)
> 

The default timeout value for TCP session is 15 minutes, TCP session
after receiving FIN is 2 miniutes, and UDP session 5 minutes.

Anyway, you can use "ipchains -M -S tcp tcpfin udp" to set your own
time values.

> The reason I ask is this: If we assume a clunky set of web servers being
> balanced that take 3s to serve an object, then if the connection entries
> are dropped immediately then we can balance about 20 million web requests
> per minute with 128M RAM. If however the connection entries are kept for a
> longer time period this puts a limit on the balancer.
> 

Yeah, it is true.

> Eg (assuming column 8 is the thing I'm after!)
> 

Actually, the column 8 is the delta value in sequence numbers. The
timeout value is in column 10.

> [zathras@consus /]$ head -n 1000 /proc/net/ip_masquerade |sed
> -e "s/  */ /g"|cut -d" " -f8|sort -nr|tail -n500|head -n1
> 8398
> [zathras@consus /]$
> 
> ie Held for about 2.3 hours, which would limit a 128Mb machine to balance
> about 10.4 million requests per day. (Which is definitely on the low side
> knowing our throughput...)
> 

Michael, please create an account on your LVS box for me. I will give
you my public key, and you tell me the password. Then, I can ssh your
host and check around there, which might help me tune the code. Don't
worry about the security, I won't break your system. ;-)

Thanks,

Wensong

> Michael.
> --
> National & Local Web Cache Support        R: G117
> Manchester Computing                      T: 0161 275 7195
> University of Manchester                  F: 0161 275 6040
> Manchester UK M13 9PL                     M: Michael.Sparks@xxxxxxxxxxxxxxx
>

----------------------------------------------------------------------
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
To unsubscribe, e-mail: lvs-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: lvs-users-help@xxxxxxxxxxxxxxxxxxxxxx

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