From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964792AbcFMFUP (ORCPT ); Mon, 13 Jun 2016 01:20:15 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:46063 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932181AbcFMFUM (ORCPT ); Mon, 13 Jun 2016 01:20:12 -0400 Date: Mon, 13 Jun 2016 14:20:07 +0900 From: Simon Horman To: Julian Anastasov Cc: Michal Kubecek , lvs-devel@vger.kernel.org, Wensong Zhang , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pablo Neira Ayuso , Patrick McHardy , Jozsef Kadlecsik , "David S. Miller" Subject: Re: [PATCH ipvs-next] ipvs: count pre-established TCP states as active Message-ID: <20160613052007.GC11835@verge.net.au> References: <20160603155650.292BEA0E60@unicorn.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organisation: Horms Solutions Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 12, 2016 at 06:27:39PM +0300, Julian Anastasov wrote: > > Hello, > > On Fri, 3 Jun 2016, Michal Kubecek wrote: > > > Some users observed that "least connection" distribution algorithm doesn't > > handle well bursts of TCP connections from reconnecting clients after > > a node or network failure. > > > > This is because the algorithm counts active connection as worth 256 > > inactive ones where for TCP, "active" only means TCP connections in > > ESTABLISHED state. In case of a connection burst, new connections are > > handled before previous ones have finished the three way handshaking so > > that all are still counted as "inactive", i.e. cheap ones. The become > > "active" quickly but at that time, all of them are already assigned to one > > real server (or few), resulting in highly unbalanced distribution. > > > > Address this by counting the "pre-established" states as "active". > > > > Signed-off-by: Michal Kubecek > > Acked-by: Julian Anastasov > > Simon, please apply! Thanks, done.