From: Alex Balashov <abalashov@evaristesys.com>
To: pgsql-admin@postgresql.org
Subject: Physical replication slots and xlog space exhaust
Date: Fri, 26 Apr 2019 14:28:30 -0400
Message-ID: <5C492AE6-272A-451D-9563-59A93162F2E6@evaristesys.com> (raw)
We have a recurring human error problem where, upon doing a base copy to a new slave, we accidentally leave the master’s physical replication slots in place, forgetting to drop them from the slave config.
After a while, transaction logs pile up on the slave — since no slaves are consuming them — and blow it out. This then causes the slave to stop downloading transaction logs from the master, causing them to accumulate due to its own replication slots.
I understand the ultimate solution to this is to mind one’s replication slots and monitor disk usage fastidiously, but is there a config parameter for the maximum overall amount of transaction logs that can be kept accumulated on the master, irrespectively of physical replication slots commitments?
Thanks!
—
Sent from mobile, with due apologies for brevity and errors.
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-admin@postgresql.org
Cc: abalashov@evaristesys.com
Subject: Re: Physical replication slots and xlog space exhaust
In-Reply-To: <5C492AE6-272A-451D-9563-59A93162F2E6@evaristesys.com>
References: <5C492AE6-272A-451D-9563-59A93162F2E6@evaristesys.com>
* 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