Re: Recommendations on how to combine SSD and HDD drives in bare metal PostgreSQL server

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Onni Hakala <onni(at)fyff(dot)ee>, pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: Recommendations on how to combine SSD and HDD drives in bare metal PostgreSQL server
Date: 2024-10-16 16:23:08
Message-ID: 93e83d00f177281c434a9b648cbd92a2dd1ea141.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, 2024-10-16 at 17:06 +0300, Onni Hakala wrote:
> I have a large dataset of > 100TB which would be very expensive to store solely into SSD drives.
>
> I have access to a server which has 2x 3.84TB NVME SSD disks and large array of HDD drives 8 x 22TB.
>
> Most of the data that I have in my dataset is very rarely accessed and is stored only for archival purposes.
>
> 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 eventually only be stored in compressed format in the HDDs?
>
> I was initially looking into building zpool using zfs with raidz3 and zstd compression for my HDDs
> but I’m unsure how to add the SSDs into this equation and I thought that this is probably a common
> scenario and wanted to ask opinions from here.

The traditionalway to handle that would be to create an extra tablespace on a file system built
on the slow disks. You'd move tables that are no longer hot to that slow tablespace.
If you cannot move the whole table, use partitioning and move old partitions to the slow
tablespace.

Yours,
Laurenz Albe

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Pilling, Michael DR 2024-10-17 03:26:51 RE: Recommendations on how to combine SSD and HDD drives in bare metal PostgreSQL server [SEC=UNOFFICIAL]
Previous Message TIM CHILD 2024-10-16 16:01:46 Re: Recommendations on how to combine SSD and HDD drives in bare metal PostgreSQL server