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 1pKAAH-0006cI-S0 for pgsql-admin@arkaria.postgresql.org; Tue, 24 Jan 2023 03:40:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pKAAG-0002Cm-HA for pgsql-admin@arkaria.postgresql.org; Tue, 24 Jan 2023 03:40:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKAAG-0002Cd-6R for pgsql-admin@lists.postgresql.org; Tue, 24 Jan 2023 03:40:04 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKAAB-0001DN-BW for pgsql-admin@lists.postgresql.org; Tue, 24 Jan 2023 03:40:03 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 1853167FD9; Tue, 24 Jan 2023 03:39:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ECIRhtQNmFcs; Tue, 24 Jan 2023 03:39:56 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 9148367FD2; Tue, 24 Jan 2023 03:39:56 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: Postgres on L2ARC From: Scott Ribe In-Reply-To: Date: Mon, 23 Jan 2023 20:39:45 -0700 Cc: pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <729B87B1-DE36-4876-9488-8F4C19DD3EF8@elevated-dev.com> References: To: Joseph Hammerman X-Mailer: Apple Mail (2.3731.300.101.1.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jan 23, 2023, at 6:18 PM, Joseph Hammerman = wrote: >=20 > Has anyone built a Postgers architecture using L2ARC, and potentially = TABLESPACES to mount the ZFS pools (dedicated one per table). I am = imagining the ZFS pools would be backed by EBS volumes. Yes. It worked fine, but much smaller and less busy than what you're = probably planning for. Originally, Ubuntu 16 & older ZFS, PG data was on = mirrorz SSD, with other SSD partitions for L2ARC & ZIL. Later, at a = major update, I did some benchmarking, and got rid of the SSD dedicated = to ZFS. Then the SSD became entirely ZIL & L2ARC, and PG shared L2ARC = with other data. So, to be clear, in this case the reason for having PG use L2ARC with = spinning rust behind it was that the PG did not need dedicated SSD for = performance...=