| From: | Justin <zzzzz(dot)graf(at)gmail(dot)com> |
|---|---|
| To: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
| Cc: | KK <knickknack(at)moppix(dot)de>, pgsql-novice(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Disk layout for parallel instances |
| Date: | 2026-08-26 20:38:52 |
| Message-ID: | CALL-XeMhybQBiVNFXt6J3avCqZtvRYMMTBgHsFh7KhLFCunU9Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
On Wed, Aug 26, 2026 at 3:32 PM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
wrote:
> On Wed, 2026-08-26 at 09:17 -0400, Justin wrote:
> > I am not a fan of breaking out the WAL, tables and logs into separate
> disks.
> > It adds a big complexity.
>
> I respect your opinion. Yes, it adds some complexity (once, during setup).
> And I agree that monitoring should take care of most "disk full" problems.
>
> But it may be good to have a second line of defence.
> I am not so worried about the log (although that can fill up quickly if
> there
> is - say - data curruption somewhere). What would worry me more is that
> bulk
> load gone crazy that can fill your disk before you can react to the alert
> from
> the monitoring system.
>
>
> Moving logs out of the main Postgres data directory is fine—that’s
standard in Debian/Ubuntu and its a simple PG config change.
My primary concern with multi-disk layouts is backup and disaster recovery.
Losing logs is annoying; Losing the WAL, catalog, or tables is
catastrophic. Many organizations rely on storage snapshots for backups, but
not all NAS/SAN setups support crash-consistent multi-disk snapshots. If
that isn't configured perfectly, the DR strategy is broken. The more
moving parts the easier it is to break.
In my experience, runaway disk usage is usually caused by unconstrained
temp files (temp_file_limit = 0), which will eat disk space far faster than
logs. Moving the temp directory does not endanger the DR. However makes
recovery harder PG going to be looking for that drive/directory at some
point.
Splitting disks up doesn't eliminate the problem—it just trades one problem
for another. If a dedicated log disk fills up, the database stays up, but
we silently drop the audit trail. How big of a problem is that. If one has
to comply to FEDRAMP its a really big problem just as bad as the database
shutting down.
My primary driver is keeping deployments as simple as possible without
complicating the DR plan.
The person who built the system won't always be there when there is a
hardware failure.
Having a greenbean trying to unravel a complex multi-disk layout during an
outage while a company is burning $100k/hour is not a fun scenario to be
in. Been there a couple of times i am not a greenbean. When I asked for
the DR plan got blank faces. "DR what is that." Not fun times..
We are now debating engineering trade offs Which one taste the least
worse.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Laurenz Albe | 2026-08-27 07:22:30 | Re: Disk layout for parallel instances |
| Previous Message | Laurenz Albe | 2026-08-26 19:32:24 | Re: Disk layout for parallel instances |