From users-return-7582-archive-asf-public=cust-asf.ponee.io@trafficserver.apache.org Mon Mar 4 20:01:07 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 C98A7180627 for ; Mon, 4 Mar 2019 21:01:06 +0100 (CET) Received: (qmail 63866 invoked by uid 500); 4 Mar 2019 20:01:05 -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 63856 invoked by uid 99); 4 Mar 2019 20:01:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Mar 2019 20:01:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 49BE2184909 for ; Mon, 4 Mar 2019 20:01:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.799 X-Spam-Level: * X-Spam-Status: No, score=1.799 tagged_above=-999 required=6.31 tests=[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_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=verizonmedia.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RogeV68Lvw9h for ; Mon, 4 Mar 2019 20:01:01 +0000 (UTC) Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2DBED60D1B for ; Mon, 4 Mar 2019 20:01:01 +0000 (UTC) Received: by mail-qk1-f194.google.com with SMTP id m9so3499346qkl.4 for ; Mon, 04 Mar 2019 12:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizonmedia.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=gLXcg/jRcW07C7cdeIDnxlg1MNsNMNMJfzQG2vLEeAc=; b=Sa5oKWwBw4QkwuZMeE4MhcU67wgSLtXX7vl1Q9jm7BVfbQnu1fIc405ml1TyW/lCVL 9a9If/zB1IlMpkueEhcBHDz65mGShnAouNkd6b2yZ2JOI2nYzGc1fXx8EPwhD8+v1ROp O1Rdxc/RiX+BrBG9RQvtyTp8ROTVNhbNFe+s1SKR4Qv6PSZvoM8alkxYlXw3R5W0qgr1 39+lp3kCkq1UuQhHsnuon2pOmRV3y2DXOh7taqBN08zlHBkr/ceA/DhQstCqx5SzPYCj OjBsYG1Y7p+jlWmYigaRdd8J+Aeczd/89PM9KSL0CmWChqQiqXlIKWuTQxB7Ha+HjprQ XIWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=gLXcg/jRcW07C7cdeIDnxlg1MNsNMNMJfzQG2vLEeAc=; b=emSglG4+xME3W81FNOaLPxMP8UrlC+oBmI3PshRsJDwbgaiBlWdxb8cIxLssGUANco BMg7JlnB2/O+76z9MOk5wkTRODQL0DNoOqyE+mIhnSI8kL9HKxz/GSbZP2tuP83vUk80 /7sDAELhgTwzROFP685cAcSuBpVdBjvcCE1EfmXxzW51c9TQ54Uyy1U80i4kqhb8WBCo SaotM943tp+h/tNagV+13ItU65KGc+Tt47c6qi9bFSRzurFmamc3tV6poevBkoYcdmXA mLmSzqc/eAsSCjMI17MAm26EDt7McMMJiSmAFU+CmpRtMlAkKw5upS6LKtGDvdm32XXp A4Ew== X-Gm-Message-State: APjAAAWiGjNoI/i7ICbztc67SvkYh6tj+JrS44MZbSUT/NtznNNRjUIB HyFpsUeirikqMrL7cvsoeJmhz83nBENuej8rtOzhx7iA X-Google-Smtp-Source: APXvYqxY1v3Ss862v0zr9U1QYjwVdOY2D02+m1Ufea56eiIugPHbJ9JojspLXz5myuw1PAIFB6KyjWrvkq0RQf3X3eU= X-Received: by 2002:a05:620a:15fa:: with SMTP id p26mr15061672qkm.130.1551729654543; Mon, 04 Mar 2019 12:00:54 -0800 (PST) MIME-Version: 1.0 References: <2515dd77-bd66-4e7d-b35d-81d9b18eb4e4@Spark> <87bd4bc3-faf4-4651-831c-66dc5d81434f@Spark> In-Reply-To: From: Alan Carroll Date: Mon, 4 Mar 2019 14:00:43 -0600 Message-ID: Subject: Re: How to config the raw disk? To: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary="000000000000d8dc4b05834a3684" --000000000000d8dc4b05834a3684 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Unfortunately that's not possible at this time. What has been done is to have two layers of ATS with the ones in front having a smaller cache and the backing layer caching on the second request for the object Or it could be by time On Mon, Mar 4, 2019 at 1:39 PM Jason Yang wrote: > Hi Alan, > Thank you for your quick response! It is helpful! I did "udevadm > 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 is working! Thank you! > > But I have another question, is there anyway to have ATS store content in > the RAM for a while before writing to disk? > 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 some > disk reads/writes. > > > Best, > Jason > > > On Mar 4, 2019, 11:53 -0500, Alan Carroll < > solidwallofcode@verizonmedia.com>, wrote: > > 1) Did you do an `ls -l /dev/nvme*` to verify the permissions are what yo= u > think you set in the udev file? > 2) Does group "ubuntu" have write permission? > 3) Did you set the process group for `traffic_server` to be "ubuntu"? See > https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/files/records.= config.en.html#proxy-config-admin-user-id > - the primary group of the user ID will be used as the effective group ID > of `traffic_server`. > > 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.rules >> SUBSYSTEM=3D=3Dblock, KERNEL=3D=3Dnvme[0123456789], GROUP:=3Dubuntu >> SUBSYSTEM=3D=3Dblock, KERNEL=3D=3Dnvme[0123456789]n1, GROUP:=3Dubuntu >> >> and my storage.config >> /dev/nvme0n1 label=3Dcache.disk.0 >> /dev/nvme1n1 label=3Dcache.disk.1 >> >> But it seems it is not working and I am getting "WARNING: unable to open >> '/dev/nvme0n1': Permission denied=E2=80=9D. >> >> >> Am I doing something wrong? Thank you! >> >> >> Jason >> >> >> >> >> --000000000000d8dc4b05834a3684 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Unfortunately that's not possible at this time. What h= as been done is to have two layers of ATS with the ones in front having a s= maller cache and the backing layer caching on the second request for the ob= ject Or it could be by time

On Mon, Mar 4, 2019 at 1:39 PM Jason Yang <peter.waynechina@gmail.com&= gt; wrote:
Hi Alan,=C2=A0
=C2=A0 =C2=A0 Thank you for your quick response! It is helpful! I did = "udevadm 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 is = working! Thank you!=C2=A0

But I have another question, is there anyway to have ATS store content= in the RAM for a while before writing to disk?=C2=A0
Because my origin sends some content, then there is some chance this c= ontent may be changed within a few seconds (origin will push again), if I c= an store the content in the RAM for while, it can potentially save some dis= k reads/writes.=C2=A0


Best,=C2=A0
Jason=C2=A0


On Mar 4, 2019, 11:53 -0500, Alan C= arroll <solidwallofcode@verizonmedia.com>, wrote:
1) Did you do an `ls -l /dev/nvme*` to verify the permissi= ons are what you think you set in the udev file?
2) Does group "ubuntu" have write permission?
3) Did you set the process group for `traffic_server` to be "ubun= tu"? See=C2=A0https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/fi= les/records.config.en.html#proxy-config-admin-user-id - the primary gro= up of the user ID will be used as the effective group ID of `traffic_server= `.

On Mon, Mar 4, 2019 at 9:59 AM Jason = Yang <pe= ter.waynechina@gmail.com> wrote:
Hi=C2=A0
I am trying to setup ATS 8.0.2 on AWS EC2 using m5d instance (with loc= al disk)

I am running traffic server using user ubuntu and the instance has dis= k like following=C2=A0
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= =C2=A0
=E2=80=83SUBSYSTEM=3D=3Dblock, KERNEL=3D=3Dnvme[0123456789], GROUP:=3D= ubuntu
=E2=80=83SUBSYSTEM=3D=3Dblock, KERNEL=3D=3Dnvme[0123456789]n1, GROUP:=3Dubu= ntu

and my storage.config=C2=A0
=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 "WARNING: unable = to open '/dev/nvme0n1': Permission denied=E2=80=9D.=C2=A0


Am I doing something wrong? Thank you!=C2=A0


Jason=C2=A0




--000000000000d8dc4b05834a3684--