From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to prevent master server crash if hot standby stops
Date: Mon, 06 Apr 2020 10:27:05 +0200
Message-ID: <b23afcd4f436c3310f236086b9daa39304650874.camel@cybertec.at> (raw)
In-Reply-To: <5E2C91B46CEF42078CC7BEE1EDC10F0E@dell2>
References: <5E2C91B46CEF42078CC7BEE1EDC10F0E@dell2>
On Mon, 2020-04-06 at 11:03 +0300, Andrus wrote:
> Streaming asynchronous binary replication is used with hot standby slave.
>
> If slave stops responing, master server will create files in pg_wal directory.
> If disk becomes full, master server crashes also.
>
> How to avoid this ?
>
> If disk is nearly full, master should stop additional files creation (and maybe stop or disable replication slot).
> Postgres 12 in Debian 10 is used.
That's why you use monitoring.
Never use replication slots without monitoring replication (or at least the
disk space on the primary).
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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: laurenz.albe@cybertec.at, kobruleht2@hot.ee
Subject: Re: How to prevent master server crash if hot standby stops
In-Reply-To: <b23afcd4f436c3310f236086b9daa39304650874.camel@cybertec.at>
References: <5E2C91B46CEF42078CC7BEE1EDC10F0E@dell2> <b23afcd4f436c3310f236086b9daa39304650874.camel@cybertec.at>
* 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