From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Radoslav Nedyalkov <rnedyalkov@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: conflict with recovery when delay is gone
Date: Fri, 13 Nov 2020 18:37:36 +0100
Message-ID: <e9be37d51f65b4b9ce20bba91f91b782310e1caa.camel@cybertec.at> (raw)
In-Reply-To: <CANhtRiaq+HPmgPiRKM6hHTzLp7kAqjP96o2+2QUZVMHP=qnqug@mail.gmail.com>
References: <CANhtRiaq+HPmgPiRKM6hHTzLp7kAqjP96o2+2QUZVMHP=qnqug@mail.gmail.com>
On Fri, 2020-11-13 at 15:24 +0200, Radoslav Nedyalkov wrote:
> On a very busy master-standby setup which runs typical olap processing -
> long living , massive writes statements, we're getting on the standby:
>
> ERROR: canceling statement due to conflict with recovery
> FATAL: terminating connection due to conflict with recovery
>
> The weird thing is that cancellations happen usually after standby has experienced
> some huge delay(2h), still not at the allowed maximum(3h). Even recently run statements
> got cancelled when the delay is already at zero.
>
> Sometimes the situation got relaxed after an hour or so.
> Restarting the server instantly helps.
>
> It is pg11.8, centos7, hugepages, shared_buffers 196G from 748G.
>
> What phenomenon could we be facing?
Hard to say. Perhaps an unusual kind of replication conflict?
What is in "pg_stat_database_conflicts" on the standby server?
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, rnedyalkov@gmail.com
Subject: Re: conflict with recovery when delay is gone
In-Reply-To: <e9be37d51f65b4b9ce20bba91f91b782310e1caa.camel@cybertec.at>
References: <CANhtRiaq+HPmgPiRKM6hHTzLp7kAqjP96o2+2QUZVMHP=qnqug@mail.gmail.com> <e9be37d51f65b4b9ce20bba91f91b782310e1caa.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