From users-return-7832-archive-asf-public=cust-asf.ponee.io@trafficserver.apache.org Thu Jul 25 19:43:19 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2D7FE18066C for ; Thu, 25 Jul 2019 21:43:19 +0200 (CEST) Received: (qmail 40229 invoked by uid 500); 25 Jul 2019 19:43:18 -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 40220 invoked by uid 99); 25 Jul 2019 19:43:18 -0000 Received: from Unknown (HELO mailrelay1-lw-us.apache.org) (10.10.3.159) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jul 2019 19:43:18 +0000 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 1AF6882E3 for ; Thu, 25 Jul 2019 19:43:17 +0000 (UTC) Received: by mail-lf1-f48.google.com with SMTP id p197so35352597lfa.2 for ; Thu, 25 Jul 2019 12:43:17 -0700 (PDT) X-Gm-Message-State: APjAAAU7P4gBIFUUbZayqKfdAWmIuxutZ+4VSSP9b2z3xkrq9amTuC+L /o07CZaY8lkJOddbh4Z30Xs7bjd4pJg1mi5od+A= X-Google-Smtp-Source: APXvYqyyh6hRnRL8EwAVdxu2oy3bQi/c6OuK/UvyBdryfn/1Nugii9tulPif5Vwm8jl0bXo2O+dIwYXMQuUUh43xF6U= X-Received: by 2002:a19:ed0c:: with SMTP id y12mr40874702lfy.191.1564083796029; Thu, 25 Jul 2019 12:43:16 -0700 (PDT) MIME-Version: 1.0 References: <913dd4b3-4691-4515-8315-3cbe3d0f53a5@Spark> <1553077600.1082876.1564078329435@mail.yahoo.com> <868A59F4-5234-48D5-BA16-982A399A6043@gmail.com> <279873447.1107786.1564081310525@mail.yahoo.com> <4cf6b58b-73ad-45e2-a05d-982c94291d93@Spark> <2117666687.1601674.1564082139497@mail.yahoo.com> In-Reply-To: <2117666687.1601674.1564082139497@mail.yahoo.com> From: Evan Zelkowitz Date: Thu, 25 Jul 2019 13:43:02 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: One-hit-wonder filtering To: users Content-Type: multipart/alternative; boundary="0000000000000fb5d6058e86a3a9" --0000000000000fb5d6058e86a3a9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yea cache promote should do you what you want, set the buckets value and hits appropriately sized for the amount of requests you get on that remap (or plugin wide) and the amount of times you wish to have seen it before allowing it in to cache On Thu, Jul 25, 2019 at 1:15 PM Sudheer Vinukonda < sudheervinukonda@yahoo.com> wrote: > Nice to know, TIL! Thank you! > > On Thursday, July 25, 2019, 12:12:30 PM PDT, Jason Yang < > peter.waynechina@gmail.com> wrote: > > > Great to know! Thank you! > > > Juncheng > > > On Jul 25, 2019, 15:05 -0400, Jeremy Payne , wrote: > > What about the 'cache promote' plugin ? > > > > On Thu, Jul 25, 2019 at 2:01 PM Sudheer Vinukonda < > sudheervinukonda@yahoo.com> wrote: > > Ah, very interesting. That requires an additional mechanism to maintain > the state (first or subsequent access) across requests. Yeah, AFAIK, this > will need a new plugin (don't believe there's anything built-in or > pre-existing to support this). > > Thanks, > > Sudheer > > > On Thursday, July 25, 2019, 11:51:07 AM PDT, Jason Yang < > peter.waynechina@gmail.com> wrote: > > > Hi Sudheer, > Thank you for your quick reply! It seems the option you proposed is a > general control. Writing a plugin is indeed one option, but to avoid > reinventing the wheel, I just want to double check that ATS does not have > this function. To be specific, I don=E2=80=99t want to cache an object wh= en I first > time see it. In other words, I only want to cache objects that have been > seen at least twice. > > > Best, > Juncheng > > > On Jul 25, 2019, at 14:12, Sudheer Vinukonda > wrote: > > Hmm..not entirely sure if I understand the question, but, if you are > asking ATS supports skipping cache on some requests, yes. There's differe= nt > ways of doing that. You can disable cache per remap line using records.co= nfig > =E2=80=94 Apache Traffic Server 9.0.0 documentation > = or > use cache.config or write a plugin for more finer control > > records.config =E2=80=94 Apache Traffic Server 9.0.0 documentation > > > > > > > cache.config =E2=80=94 Apache Traffic Server 9.0.0 documentation > > > cache.config =E2=80=94 Apache Traffic Server 9.0.0 documentation > > > > > > Does that answer your question? > > Thanks, > > Sudheer > > > On Thursday, July 25, 2019, 11:05:34 AM PDT, Jason Yang < > peter.waynechina@gmail.com> wrote: > > > Hi there, > I am wondering whether ATS supports filtering one-hit-wonders (do not > store them into cache). Thank you! > > > Best, > Juncheng > > > --0000000000000fb5d6058e86a3a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yea cache promote should do you what you want, set the buc= kets value and hits appropriately sized for the amount of requests you get = on that remap (or plugin wide) and the amount of times you wish to have see= n it before allowing it in to cache

On Thu, Jul 25, 2019 at 1:15 PM Sudh= eer Vinukonda <sudheervinu= konda@yahoo.com> wrote:
Nice to know, TIL! Thank you!

=20
=20
On Thursday, July 25, 2019, 12:12:30 PM PDT, Jason Yang= <peter.= waynechina@gmail.com> wrote:


Great to know! Thank you!=C2=A0


Juncheng=C2=A0


On Jul 25, 2019, 15:05 -0400, Jeremy Payne <jp557198@gmail.com>, wrote:
What about the 'cache promote' plugin ?



On Thu, Jul 25, 2019 at 2:01 PM Sudheer Vinukonda <sudheervinukonda@yahoo.com> wrote:
<= /div>
Ah, very interesting. That requires an additional mechanis= m to maintain the state (first or subsequent access) across requests. Yeah,= AFAIK, this will need a new plugin (don't believe there's anything= built-in or pre-existing to support this).

Thanks,

Sudheer


On Thursday, July 25, 2019, 11:51:07 AM PDT, Jason Yang <peter.waynechina@gmail.com> wrote:


Hi Sudheer,=C2=A0
=C2=A0 =C2=A0 Thank you for your= quick reply! It seems the option you proposed is a general control. Writin= g a plugin is indeed one option, but to avoid reinventing the wheel, I just= want to double check that ATS does not have this function. To be specific,= I don=E2=80=99t want to cache an object when I first time see it. In other= words, I only want to cache objects that have been seen at least twice.=C2= =A0


Best,=C2=A0
Juncheng=C2=A0


On Jul 25, 2019, at 14:12, Sudhe= er Vinukonda <sudheervinukonda@yahoo.com> wrote:

On Thursday, July 25, 2019, 11:0= 5:34 AM PDT, Jason Yang <peter.waynechina@gmail.com> wrote:


Hi there,=C2=A0
=C2=A0 =C2=A0 I am won= dering whether ATS supports filtering one-hit-wonders (do not store them in= to cache). Thank you!=C2=A0


Best,=C2=A0
Juncheng=C2=A0

--0000000000000fb5d6058e86a3a9--