| From: | KK <knickknack(at)moppix(dot)de> |
|---|---|
| To: | pgsql-novice(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Disk layout for parallel instances |
| Date: | 2026-08-26 06:20:29 |
| Message-ID: | 95dc6245-c950-4379-8a91-bda602b155c2@moppix.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
Am 25.08.26 um 17:49 schrieb Justin:
>
> Without additional details, it is hard to make concrete
> recommendations for the disk setup. Key missing details include:
>
> *
>
> Total database size
>
> *
>
> Whether a single VM is running multiple PostgreSQL clusters
>
> *
>
> Expected read/write workloads
>
> *
>
> Storage redundancy and RAID configuration
>
> *
>
> Underlying storage architecture (SSD, NVMe, SAN/NAS, or spinning
> disks)
>
Am 26.08.26 um 07:09 schrieb Laurenz Albe:
> I recommend three file systems for a database cluster: one for the data directory, one for
> pg_wal, and one for the log files. The main reason is not performance, but to avoid that
> lots of data or log messages written can fill up the WAL disk and crash the server.
Good morning, everyone.
First of all, thank you for the very detailed response.
The machine is a VM running within a Proxmox cluster. The Proxmox nodes
are interconnected via dual 10 Gbit 802.3ad links in the primary ring
and a 1 Gbit link in the secondary ring. Ceph is used for storage. Each
Proxmox node accesses Ceph via dual 10 Gbit 802.3ad links.
The PostgreSQL data directory is intended to reside on a virtual disk in
Ceph backed by SAS SSDs.
Following Laurenz's suggestion, I plan to create two additional virtual
disks in Ceph (for pg_wal and logs), but place them in the SATA pool. Or
should this data also be stored on native SSDs?
In general, I was considering using LVM. The question is: XFS or Ext4?
Or does it not really matter?
The Ceph nodes themselves are physically separated across the campus and
interconnected by high-capacity links.
The databases vary in size—though "large" is likely defined differently
by everyone. In any case, they are smaller than 500 GB.
At the moment, nothing specific can be said about the number of
databases; as is often the case, the approach will be to start small and
scale up.
Regarding criticality: the system needs to store data with very long
retention periods (radiation protection)—at least 30 years—as well as
short-term data (e.g., six-month retention), and everything in between.
There are also databases containing data from a laboratory system. This
data consists of analyses of various types of samples; this means
records are written every second. At the same time, there are read
requests from medical practices accessing this data during the day.
Essentially, the system stores both highly sensitive data and technical
data—such as information for authentication (RADIUS) or a ticketing
system. The question that arises for me, then, is whether it wouldn't be
better to physically separate this data into two VMs—and, in conjunction
with that, move the VM containing particularly sensitive data into a
separate VLAN.
Best regards,
Michael
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Justin | 2026-08-26 13:17:51 | Re: Disk layout for parallel instances |
| Previous Message | Laurenz Albe | 2026-08-26 05:09:19 | Re: Disk layout for parallel instances |