Re: delta encoding and state management

Willy Tarreau <w@1wt.eu> Thu, 24 January 2013 15:07 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B185121F8A90 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 07:07:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.117
X-Spam-Level:
X-Spam-Status: No, score=-10.117 tagged_above=-999 required=5 tests=[AWL=0.167, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MILLIONSOF=0.315]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i6ijdeWoaEdj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 07:07:18 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3272F21F8A8E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 24 Jan 2013 07:07:13 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TyONk-0000ev-4o for ietf-http-wg-dist@listhub.w3.org; Thu, 24 Jan 2013 15:06:24 +0000
Resent-Date: Thu, 24 Jan 2013 15:06:24 +0000
Resent-Message-Id: <E1TyONk-0000ev-4o@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TyONa-0000dI-VI for ietf-http-wg@listhub.w3.org; Thu, 24 Jan 2013 15:06:14 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TyONU-0001dY-Ok for ietf-http-wg@w3.org; Thu, 24 Jan 2013 15:06:14 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id r0OF5X2X012247; Thu, 24 Jan 2013 16:05:33 +0100
Date: Thu, 24 Jan 2013 16:05:33 +0100
From: Willy Tarreau <w@1wt.eu>
To: Patrick McManus <pmcmanus@mozilla.com>
Cc: "William Chan (?????????)" <willchan@chromium.org>, James M Snell <jasnell@gmail.com>, Nico Williams <nico@cryptonector.com>, Roberto Peon <grmocg@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Message-ID: <20130124150533.GH10448@1wt.eu>
References: <20130122212748.GJ30692@1wt.eu> <CAA4WUYj51jRFosut2RsdE46SqoMDqa_r5EB7g4pj5eC2i73j7Q@mail.gmail.com> <20130122224646.GO30692@1wt.eu> <CAA4WUYjuCGyJjA2nN_-oh8TunrA7owWFQRhLg-ps+fkp9T47Ew@mail.gmail.com> <20130123000018.GR30692@1wt.eu> <CAA4WUYjGiA0WP6o3ub5ZPTh-zYZ9Jth6w2GfuMT+WarT69GW-A@mail.gmail.com> <20130123073357.GB32648@1wt.eu> <CAOdDvNoOnscRCA54n07Suxe9UQieq32SkwvMxNnEdSnK94s_PA@mail.gmail.com> <20130124070818.GH6590@1wt.eu> <CAOdDvNrR+pCKujywHjbJ+ksEkLZE-H=AvD3wJnvGf+_7Hv=Ldg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CAOdDvNrR+pCKujywHjbJ+ksEkLZE-H=AvD3wJnvGf+_7Hv=Ldg@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-3.059, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TyONU-0001dY-Ok 529a914fc1f9c59a7d6be64af5d73942
X-Original-To: ietf-http-wg@w3.org
Subject: Re: delta encoding and state management
Archived-At: <http://www.w3.org/mid/20130124150533.GH10448@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16151
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Pat,

On Thu, Jan 24, 2013 at 09:50:34AM -0500, Patrick McManus wrote:
> On Thu, Jan 24, 2013 at 2:08 AM, Willy Tarreau <w@1wt.eu> wrote:
> 
> >
> > You don't count the trend in user count which is faster than the trend
> > in RAM price unfortunately. I've had several times people ask me what
> > to change in their kernel to go beyond 1 million concurrent connections
> > in haproxy. A few years ago, they were only talking about several tens
> > of thousands. With everything device connected to everything all the
> > time, I don't expect this trend to revert any time soon :-/
> >
> 
> Hey Wily,
> 
> you're a wicked smart guy with customers backed by millions of people and
> resources. Your problem is a "simple" (jokingly!) matter of engineering
> bigger systems.
> 
> The latency problem is inherent in the speed of light and can't be fixed in
> the same way. I remain convinced that it should trump other objectives when
> designing the protocol.
> 
> That being said, I'm not here arguing for RAM bloat! All I said is that if
> state can be justified by an improvement against the latency problem then
> it is truly justified. If another scheme can do the same with less state -
> then that's more awesome!

That's why I said that I'm not against adding *some* state. For example, even
if I would be really bothered by doubling the state size on middle boxes, it's
not always the end of the world. But it must be really justified and provide
substantial benefits. In my case, we're talking about adding few data. People
still doing pattern matching in HTTP on routers/firewalls will have a harder
time maintaining a state anyway. As time permits, I'll do my best to help
focusing on reducing costs for intermediaries (CPU and RAM) because they are
the ones making scaling possible and we must ensure we don't needlessly bloat
them.

Regards,
Willy