Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t16TN-00Ek8B-GP for pgsql-novice@arkaria.postgresql.org; Wed, 16 Oct 2024 16:02:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t16TL-005GUx-Jh for pgsql-novice@arkaria.postgresql.org; Wed, 16 Oct 2024 16:02:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t16TK-005GUo-Ll for pgsql-novice@lists.postgresql.org; Wed, 16 Oct 2024 16:02:03 +0000 Received: from resqmta-h2p-567062.sys.comcast.net ([2001:558:fd02:2446::a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t16TG-001NfW-Oo for pgsql-novice@lists.postgresql.org; Wed, 16 Oct 2024 16:02:01 +0000 Received: from resomta-h2p-555359.sys.comcast.net ([96.102.179.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-h2p-567062.sys.comcast.net with ESMTPS id 12aFtlVWtu2Lx16T5t6l8K; Wed, 16 Oct 2024 16:01:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1729094507; bh=MWBnL5Nlt2deZD93k5e38/8B3/qRzC0LYN4qs3nBNfk=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type:Xfinity-Spam-Result; b=nk4v0fmeyOP4jDz+98Bjn51yvB8rWtxh5t8ueTDkFpN798bxbo+WhE747WR502Kxa 6DwXXzGxxubgCYoZkIWb8ocfstF/k1+9k4tsyPn17D/aqQJDsyuW6yShWOQtpV5CUe pDQQI00mmE2yBiMiKlqEsaczWeRu/cu5Oacw7dM9ZHwF+S6QP/EtosBo1Eeah89kmd ofjDO2SCrnjo7ZFmSkN2hQ18LxkNOURJ8y9Mke8qkqLcc73R4mhjFXjhd9o94t51vL pUSDIHrs/8J4kg45/Yd3yEvBlZviZBtdp4yuP3+liowItkCbRefnheNMOyiokVakS0 EjU3uM2bPce9w== Received: from oxapp-hoa-62o.email.comcast.net ([96.116.227.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resomta-h2p-555359.sys.comcast.net with ESMTPS id 16T4ti7MYmghF16T4tBCC1; Wed, 16 Oct 2024 16:01:47 +0000 Date: Wed, 16 Oct 2024 09:01:46 -0700 (PDT) From: TIM CHILD To: Onni Hakala , pgsql-novice@lists.postgresql.org Message-ID: <492978770.733068.1729094506490@connect.xfinity.com> In-Reply-To: <89E7D559-F734-4739-9730-7EDDF787910D@flaky.build> References: <89E7D559-F734-4739-9730-7EDDF787910D@flaky.build> Subject: Re: Recommendations on how to combine SSD and HDD drives in bare metal PostgreSQL server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev59 X-Originating-IP: ::ffff:76.102.200.136 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfB99LcbXGlImvAyVO6hp93nKwPFQUG7HaRC9DeK0IkC9VdOjBMvBeIPECdbETEBId7l1iI5WEaRr0s92M47e5VXPWptKv0HHPHGkHORAHpejvN8rWTHP adtswgqI2ZplpqIMvZdvdA9yXZZWYAyxu/hKaeqo6Q7o4qnHzP0Kv8wf4vBXxh588hJtQu2hBlMmD2MEuo/t9mARpOfrIqLXi8WFB4wilwCMYLR+mFnlfcQN axPKr30XlpAgMfnH719QXg== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Omni, Firstly, it looks like to have a solution, ( a fixed number and type of dis= ks) looking for a problem. Its better to consider what is right mix of disk= s for your application the server.=20 To understand the best physical layout, you need to know the logical acces= s patterns to your data. When you access your data are you doing random que= ries, or index scans or table scans or computing aggregates? What queries = are most important and what response time are you targeting?=20 Once you have an idea of your logical access patterns you map that to you p= hysical layout. =20 Postgres Tablespaces are useful as they allow you locate tables and indexe= s of different physical devices. For example it will be better to put small= frequently used tables of SSD's. Or just put frequently used indexes on th= e SSD. =20 There are many factors to consider when planning the physical storage layou= t. There could me a need for AI apps to do just that! -Tim > On 10/16/2024 7:06 AM PDT Onni Hakala wrote: >=20 > =20 > Hey, >=20 > I have a large dataset of > 100TB which would be very expensive to store = solely into SSD drives. >=20 > I have access to a server which has 2x 3.84TB NVME SSD disks and large ar= ray of HDD drives 8 x 22TB. >=20 > Most of the data that I have in my dataset is very rarely accessed and is= stored only for archival purposes. >=20 > What would be the de-facto way to use both SSD and HDD together in a way = use where commonly used data would be fast to access and old data would eve= ntually only be stored in compressed format in the HDDs? >=20 > I was initially looking into building zpool using zfs with raidz3 and zst= d compression for my HDDs but I=E2=80=99m unsure how to add the SSDs into t= his equation and I thought that this is probably a common scenario and want= ed to ask opinions from here. >=20 > Thanks in advance, > Onni Hakala