From: Phil Endecott <spam_from_pgsql_lists@chezphil.org>
To: pgsql-general@lists.postgresql.org
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: Replication failure, slave requesting old segments
Date: Mon, 13 Aug 2018 13:08:12 +0100
Message-ID: <1534162092902@dmwebmail.dmwebmail.chezphil.org> (raw)
In-Reply-To: <31ba3812-6a0a-4639-5386-e804e59bc322@aklaver.com>
References: <31ba3812-6a0a-4639-5386-e804e59bc322@aklaver.com>
Adrian Klaver wrote:
> On 08/12/2018 02:56 PM, Phil Endecott wrote:
>> Anyway. Do others agree that my issue was the result of
>> wal_keep_segments=0 ?
>
> Only as a sub-issue of the slave losing contact with the master. The
> basic problem is maintaining two separate operations, archiving and
> streaming, in sync. If either or some combination of both lose
> synchronization then it is anyone's guess on what is appropriate for
> wal_keep_segments.
Really? I thought the intention was that the system should be
able to recover reliably when the slave reconnects after a
period of downtime, subject only to there being sufficient
network/CPU/disk bandwidth etc. for it to eventually catch up.
If that's not true, I think the docs need an even more extensive
overhaul! Suggestion for the paragraph that I quoted before from
26.2.5:
"If you set up a WAL archive that's accessible from the standby,
it's anyone's guess what is appropriate for wal_keep_segments."
Regards, Phil.
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: spam_from_pgsql_lists@chezphil.org, adrian.klaver@aklaver.com
Subject: Re: Replication failure, slave requesting old segments
In-Reply-To: <1534162092902@dmwebmail.dmwebmail.chezphil.org>
References: <31ba3812-6a0a-4639-5386-e804e59bc322@aklaver.com> <1534162092902@dmwebmail.dmwebmail.chezphil.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