From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: basti <mailinglist@unix-solution.de>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: prevent WAL replication to fill filesystem
Date: Tue, 31 Aug 2021 11:37:52 +0200
Message-ID: <20210831113752.2be1ed44@firost> (raw)
In-Reply-To: <7dddc78919c491aa1b6f1e369ed8024ccba9f1be.camel@cybertec.at>
References: <b29ef63e-9265-e4b1-afaf-453f3c254a6f@unix-solution.de>
<7dddc78919c491aa1b6f1e369ed8024ccba9f1be.camel@cybertec.at>
On Tue, 31 Aug 2021 10:53:45 +0200
Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> On Tue, 2021-08-31 at 10:36 +0200, basti wrote:
> > have a old PG 9.6 with WAL replication.
> > for some reason the rsync was failed and the filesystem was filled by
> > pg_xlog files.
> > As result PG stops working.
> >
> > Is there a way to prevent WAL replication to fill filesystem by xlog
> > files in case of failure?
No.
You have to size your partition big enough to handle few days of normal
WAL production, monitor the archiving success and react quickly to fix things
when it fails.
> Upgrade to v13 and set "max_slot_wal_keep_size".
How this would prevent the failure if $OP doesn't (want to) use slots ? He
speaks about rsync, so it might be purely archiving error, not streaming.
Regards,
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: jgdr@dalibo.com, laurenz.albe@cybertec.at, mailinglist@unix-solution.de
Subject: Re: prevent WAL replication to fill filesystem
In-Reply-To: <20210831113752.2be1ed44@firost>
References: <b29ef63e-9265-e4b1-afaf-453f3c254a6f@unix-solution.de> <7dddc78919c491aa1b6f1e369ed8024ccba9f1be.camel@cybertec.at> <20210831113752.2be1ed44@firost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox