Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0276C106BE for ; Sat, 23 Nov 2013 07:14:02 +0000 (UTC) Received: (qmail 97880 invoked by uid 500); 23 Nov 2013 07:14:00 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 97577 invoked by uid 500); 23 Nov 2013 07:13:45 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 97565 invoked by uid 99); 23 Nov 2013 07:13:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Nov 2013 07:13:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of moseleymark@gmail.com designates 209.85.223.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Nov 2013 07:13:39 +0000 Received: by mail-ie0-f177.google.com with SMTP id tp5so3586550ieb.8 for ; Fri, 22 Nov 2013 23:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xEgIfqDtLExzMnW23xtWi1+D+vq9Lu65lgJqNiieses=; b=XFuzdvhI3tqmBESUWSEmrbVkGJBQzqTiuXOvLEAxnDRRdSZwGVR9KFOWmdRKnhRYZN 7XSqaXgjYmyyLBtol3DOhCel3rK3ZlenEAKFotxMyFlSQ4599bB7RGQrxOGjiSMBG4Sv 9+JhXyfq+EKj99sm8rTzJPpKG0+D9e9Kj4wLh3vuiOa7Xr7UlvCHwsn/IAfexKPhAxIh dqzqYyQx223IeX1TRiXJmaSaAt62A+Y+NRTwkJKKm+xIpvTT/DQtG2Peggep4FqvvZOY CCmDGcLAO0SH0aK1No7iDUlcp+d70jw9Hu2esUtiHCZnNJSW3NomKlDPbgcn6N58C1tK AMbQ== MIME-Version: 1.0 X-Received: by 10.50.13.9 with SMTP id d9mr5440846igc.25.1385190798777; Fri, 22 Nov 2013 23:13:18 -0800 (PST) Received: by 10.50.102.10 with HTTP; Fri, 22 Nov 2013 23:13:18 -0800 (PST) In-Reply-To: <24DB4B81-4198-4F1C-B28F-72F4A4CD6DBE@apache.org> References: <24DB4B81-4198-4F1C-B28F-72F4A4CD6DBE@apache.org> Date: Fri, 22 Nov 2013 23:13:18 -0800 Message-ID: Subject: Re: Curious about proxy.config.remap.num_remap_threads From: Mark Moseley To: Leif Hedstrom Cc: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary=089e013c68e281e5db04ebd2ddd3 X-Virus-Checked: Checked by ClamAV on apache.org --089e013c68e281e5db04ebd2ddd3 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Nov 22, 2013 at 7:51 PM, Leif Hedstrom wrote: > > On Nov 22, 2013, at 11:18 AM, Mark Moseley wrote: > > > I'm looking to deploy ATS in a very busy, remap-heavy reverse proxy > environment. I'll be using a handful of lines of Lua to remap based on an > incoming header. > > > > The new proxy.config.remap.num_remap_threads option sounds like it'd be > pretty important to set for such a scenario. > > > > Could the devs chime in on what would be an appropriate # for this > setting? > > > > Should 1 suffice? Should it be equal to # of cores? Or something much > higher? > > > The only use case I think think of for the remap threads feature is if you > have a plugin that can block a thread. With block, I mean, not yield it in > some reasonable amount of milliseconds. For now, if you use this remap > threads processor, you also have to turn off the per thread sharing of > sessions, and switch to a single global session pool. > Ok, so it sounds like if something isn't blocking, then there's no need to set it at all then. My Lua code is just doing some munging on the original destination IP, so should never block. Sound right? --089e013c68e281e5db04ebd2ddd3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Fri, Nov 22, 2013 at 7:51 PM, Leif Hedstrom <zwoop@ap= ache.org> wrote:

On Nov 22, 2013, at 11:18 AM, Mark Moseley <moseleymark@gmail.com> wrote:

> I'm looking to deploy ATS in a very busy, remap-heavy reverse prox= y environment. I'll be using a handful of lines of Lua to remap based o= n an incoming header.
>
> The new proxy.config.remap.num_remap_threads option sounds like it'= ;d be pretty important to set for such a scenario.
>
> Could the devs chime in on what would be an appropriate # for this set= ting?
>
> Should 1 suffice? Should it be equal to # of cores? Or something much = higher?


The only use case I think think of for the remap threads featur= e is if you have a plugin that can block a thread. With block, I mean, not = yield it in some reasonable amount of milliseconds. For now, if you use thi= s remap threads processor, you also have to turn off the per thread sharing= of sessions, and switch to a single global session pool.


Ok, so i= t sounds like if something isn't blocking, then there's no need to = set it at all then. My Lua code is just doing some munging on the original = destination IP, so should never block. Sound right?
--089e013c68e281e5db04ebd2ddd3--