From users-return-7581-archive-asf-public=cust-asf.ponee.io@trafficserver.apache.org Mon Mar 4 19:39:52 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C13AC180627 for ; Mon, 4 Mar 2019 20:39:51 +0100 (CET) Received: (qmail 20869 invoked by uid 500); 4 Mar 2019 19:39:50 -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 20859 invoked by uid 99); 4 Mar 2019 19:39:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Mar 2019 19:39:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4DFADC09DC for ; Mon, 4 Mar 2019 19:39:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.801 X-Spam-Level: * X-Spam-Status: No, score=1.801 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id X32z6CEGhc0Z for ; Mon, 4 Mar 2019 19:39:48 +0000 (UTC) Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 092DE5F383 for ; Mon, 4 Mar 2019 19:39:48 +0000 (UTC) Received: by mail-qt1-f196.google.com with SMTP id j36so6427382qta.7 for ; Mon, 04 Mar 2019 11:39:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version; bh=79z/AU76eFl/DWinktpx1tWhzrf/WQK5OdPBOTWtIBY=; b=YhR0NQFW82KgEwJR0PTV7TniENc/Fm2j7A4qNJqOqseUSSftZACB1giLhVmKlkBa0R +tQQEoOq6N1FR6MghdZwEql/cIKcVnsrRj57xqsX0qxGMGX0CMT1PI4JmCIfCcaB3YQ4 KlAblPAIygetGWpKVGH6EPjHu8jUrLgud2ZzEynlUVR3pluTYCiMIovAB7T9CJeOIJ7B VHYzYS5mkTc+KW6o9xsj4DZ1ibVIaNtevUGc1l4vRIg+sA9AtSgacNncBQAylpcpICOV DR/SW/X0DSDpHB0tkPQBEEH308WvpcvLIjliTp9j35Fi+z5pMmiu6upbVUI8YM+/WSAh /xkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version; bh=79z/AU76eFl/DWinktpx1tWhzrf/WQK5OdPBOTWtIBY=; b=O6Le3zAF4IXZN7O1VIzXQUk2NodRYun+qXlNpZmeJQxqrVjDoT5asIZePMIqGi87UJ 5guLZPksNnbTMZKJQKf4G7DrbhifEf3sNmQsYRkCkxj1a6/+8JC2JWuk92PinsuL1RmK ooJofuMle/dO/7ymFYOVt+/qPcRvC566vpQWa5DJpP/AY67GNgQBBFJwhlWviiOPTRWo sS6Wh1+ugUPg5wZCYVjTUUO1Jryo0FsdKvx/eSPQJk6nNV0MnhE74aJKQ0LVJgkHGO56 /3ZI6skIya23ir0AU0HN0KWXpz8oaZ7et+dP3bw9BEJF4bWHcgVv1fJBKHXj5ocSx/62 QnKA== X-Gm-Message-State: APjAAAWtr67iIkq85QPsVCOaaAhZ1J02fdnaYowzfm0BwDycbdfoRsRv lXOtULSIqMbsCd47ZDmEcYioWW4T+Ss= X-Google-Smtp-Source: APXvYqzLr/Ml+fbw1zeFdkU00SROgeDUuIHvD+6FqXJ0MXVX/zl7Z0+T9zfciBVAPrecIXhjrOh9oA== X-Received: by 2002:a0c:ad19:: with SMTP id u25mr15740224qvc.14.1551728386431; Mon, 04 Mar 2019 11:39:46 -0800 (PST) Received: from [128.2.208.201] (ghc8flrcolor.prt.cs.cmu.edu. [128.2.208.201]) by smtp.gmail.com with ESMTPSA id e4sm4418929qta.84.2019.03.04.11.39.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 11:39:45 -0800 (PST) Date: Mon, 4 Mar 2019 14:39:39 -0500 From: Jason Yang To: users@trafficserver.apache.org Message-ID: In-Reply-To: References: <2515dd77-bd66-4e7d-b35d-81d9b18eb4e4@Spark> <87bd4bc3-faf4-4651-831c-66dc5d81434f@Spark> Subject: Re: How to config the raw disk? X-Readdle-Message-ID: c5a50544-8a6f-47a3-8073-f60a0bad041d@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5c7d7f00_419ac241_d0f" --5c7d7f00_419ac241_d0f Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Alan, =C2=A0 =C2=A0 Thank you for your quick response=21 It is helpful=21 I did= =22udevadm trigger --subsystem-match=3Dblock=E2=80=9D using root, which = seems doesn=E2=80=99t work, so I did it again using user ubuntu, now it i= s working=21 Thank you=21 But I have another question, is there anyway to have ATS store content in= the RAM for a while before writing to disk=3F Because my origin sends some content, then there is some chance this cont= ent may be changed within a few seconds (origin will push again), if I ca= n store the content in the RAM for while, it can potentially save some di= sk reads/writes. Best, Jason On Mar 4, 2019, 11:53 -0500, Alan Carroll , wrote: > 1) Did you do an =60ls -l /dev/nvme*=60 to verify the permissions are w= hat you think you set in the udev file=3F > 2) Does group =22ubuntu=22 have write permission=3F > 3) Did you set the process group for =60traffic=5Fserver=60 to be =22ub= untu=22=3F See=C2=A0https://docs.trafficserver.apache.org/en/8.0.x/admin-= guide/files/records.config.en.html=23proxy-config-admin-user-id - the pri= mary group of the user ID will be used as the effective group ID of =60tr= affic=5Fserver=60. > > > On Mon, Mar 4, 2019 at 9:59 AM Jason Yang wrote: > > > Hi > > > I am trying to setup ATS 8.0.2 on AWS EC2 using m5d instance (with = local disk) > > > > > > I am running traffic server using user ubuntu and the instance has = disk like following > > > nvme0n1 259:0 0 279.4G 0 disk > > > nvme1n1 259:1 0 279.4G 0 disk > > > nvme2n1 259:2 0 8G 0 disk > > > =E2=94=94=E2=94=80nvme2n1p1 259:3 0 8G 0 part / > > > > > > I added the following lines to /etc/udev/rules.d/51-cache-disk.rule= s > > > =E2=80=83SUBSYSTEM=3D=3Dblock, KERNEL=3D=3Dnvme=5B0123456789=5D, GR= OUP:=3Dubuntu > > > =E2=80=83SUBSYSTEM=3D=3Dblock, KERNEL=3D=3Dnvme=5B0123456789=5Dn1, = GROUP:=3Dubuntu > > > > > > and my storage.config > > > =E2=80=83/dev/nvme0n1 label=3Dcache.disk.0 > > > =E2=80=83/dev/nvme1n1 label=3Dcache.disk.1 > > > > > > But it seems it is not working and I am getting =22WARNING: unable = to open '/dev/nvme0n1': Permission denied=E2=80=9D. > > > > > > > > > Am I doing something wrong=3F Thank you=21 > > > > > > > > > Jason > > > > > > > > > > > > --5c7d7f00_419ac241_d0f Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi Alan,&=23160;=
&=23160; &=23160; Thank you for your quick response=21 It is helpful= =21 I did =22udevadm trigger --subsystem-match=3Dblock=E2=80=9D using roo= t, which seems doesn=E2=80=99t work, so I did it again using user ubuntu,= now it is working=21 Thank you=21&=23160;

But I have another question, is there anyway to have ATS store conte= nt in the RAM for a while before writing to disk=3F&=23160;
Because my origin sends some content, then there is some chance this= content may be changed within a few seconds (origin will push again), if= I can store the content in the RAM for while, it can potentially save so= me disk reads/writes.&=23160;


Best,&=23160;
Jason&=23160;


On Mar 4, 2019,= 11:53 -0500, Alan Carroll <solidwallofcode=40verizonmedia.com>, wr= ote:
1) Did you do an =60ls -l /dev/nvme*=60 to verify th= e permissions are what you think you set in the udev file=3F
2) Does group =22ubuntu=22 have write permission=3F
3) Did you set the process group for =60traffic=5Fserver=60 to be =22= ubuntu=22=3F See&=23160;https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/fil= es/records.config.en.html=23proxy-config-admin-user-id - the primary = group of the user ID will be used as the effective group ID of =60traffic= =5Fserver=60.

On Mon, Mar 4, 2019 at 9:= 59 AM Jason Yang <= peter.waynechina=40gmail.com> wrote:
Hi&=23160;
I am trying to setup ATS 8.0.2 on AWS EC2 using m5d instance (with l= ocal disk)

I am running traffic server using user ubuntu and the instance has d= isk like following&=23160;
nvme0n1 259:0 0 279.4G 0 disk
nvme1n1 259:1 0 279.4G 0 disk
nvme2n1 259:2 0 8G 0 disk
=E2=94=94=E2=94=80nvme2n1p1 259:3 0 8G 0 part /

I added the following lines to /etc/udev/rules.d/51-cache-disk.rules= &=23160;
=E2=80=83SUBSYSTEM=3D=3Dblock, KERNEL=3D=3Dnvme=5B0123456789=5D, GRO= UP:=3Dubuntu
=E2=80=83SUBSYSTEM=3D=3Dblock, KERNEL=3D=3Dnvme=5B0123456789=5Dn1, GROUP:= =3Dubuntu

and my storage.config&=23160;
=E2=80=83/dev/nvme0n1 label=3Dcache.disk.0
=E2=80=83/dev/nvme1n1 label=3Dcache.disk.1

But it seems it is not working and I am getting =22WARNING: unable t= o open '/dev/nvme0n1': Permission denied=E2=80=9D.&=23160;


Am I doing something wrong=3F Thank you=21&=23160;


Jason&=23160;




--5c7d7f00_419ac241_d0f--