From: nick.bales@rackspace.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13962: transaction logs growing on standby
Date: Mon, 15 Feb 2016 22:29:48 +0000
Message-ID: <20160215222948.2605.39385@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13962
Logged by: Nick Bales
Email address: nick.bales@rackspace.com
PostgreSQL version: 9.3.9
Operating system: CentOS 6.6
Description:
On several of my postgres 9.3.x clusters with streaming replication, the
number of transaction logs(files in pg_xlog, not the archived logs) on the
standby nodes are growing past the theoretical maximum(wal_keep_segments + 2
* checkpoint_segments + 1). Most are appropriately getting recycled at each
restartpoint, as can be seed with the log entry like:
restartpoint complete: wrote 128 buffers (0.0%); 0 transaction log file(s)
added, 0 removed, 1 recycled
However, at semi-regular intervals, no xlogs are added, removed, or
recycled:
restartpoint complete: wrote 135 buffers (0.0%); 0 transaction log file(s)
added, 0 removed, 0 recycled
The number of orphaned files for a period directly matches the number of log
occurrences where no files are recycled during a restartpoint. There is
also no log that a new transaction log file is added, even though the number
of xlogs in the directory is growing. Furthermore, once a file is orphaned,
it sticks around for the life of the system, ultimately leading to
exhausting all disk space on long running systems.
Relevant settings:
wal_level = hot_standby
wal_keep_segments = 200
checkpoint_segments = 128
checkpoint_timeout = 5min
checkpoint_completion_target = 0.7
checkpoint_warning = 30s
log_checkpoints = on
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: nick.bales@rackspace.com
Subject: Re: BUG #13962: transaction logs growing on standby
In-Reply-To: <20160215222948.2605.39385@wrigleys.postgresql.org>
References: <20160215222948.2605.39385@wrigleys.postgresql.org>
* 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