Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jN0mq-0003Qx-Fw for pgsql-sql@arkaria.postgresql.org; Fri, 10 Apr 2020 21:02:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jN0mp-0000dr-2M for pgsql-sql@arkaria.postgresql.org; Fri, 10 Apr 2020 21:02:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jN0mo-0000dP-S6 for pgsql-sql@lists.postgresql.org; Fri, 10 Apr 2020 21:02:02 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jN0mm-0005aL-58 for pgsql-sql@lists.postgresql.org; Fri, 10 Apr 2020 21:02:02 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jN0mg-0001de-QY; Fri, 10 Apr 2020 17:01:54 -0400 Date: Fri, 10 Apr 2020 17:01:54 -0400 From: Bruce Momjian To: Erik Brandsberg Cc: Lu Dillon , Iuri Sampaio , Ed Behn , MichaelDBA , Steve Midgley , "pgsql-sql@lists.postgresql.org" Subject: Re: =?utf-8?B?5Zue5aSN?= =?utf-8?Q?=3A?= [External] Re: Separate volumes Message-ID: <20200410210154.GC24987@momjian.us> References: <5b60ae44-33e0-d9ea-d6e9-c6db9b4c7ef1@sqlexec.com> <399454FC-D175-421C-AC3A-31B1082E7881@gmail.com> <20200410200420.GA24987@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Apr 10, 2020 at 04:52:06PM -0400, Erik Brandsberg wrote: > A modern filesystem can help avoid even this complexity.  As an example, I am > managing one PG setup that is self-hosted on an AWS EC2 instance, with 16TB of > raw storage.  The bulk of that storage is in ST1, or the cheapest rotating disk > capacity available in EBS, but is using ZFS as the filesystem (with > compression, so realistically about 35TB of raw data).  The instance type is a > Z1d.metal, which has two 900GB NVME drives, which have been divided to provide > swap space, as well as ZFS read and write caching.  This setup has largely > offset the slow performance of the st1 disks, and kept the performance usable > (most of the data is legacy, and rarely used).   I'm a big fan of keeping the > DB configuration simple, as it is way too easy to overlook tuning of a > filespace for an index, causing performance problems, while if you keep it > auto-tuning at the filesystem level, it "just works". You are saying the cloud automatically moves data between the fast and slow storage? I know many NAS systems do this, but I have also seen problems when NAS systems guess wrong. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +