From: Wyatt Alt <wyatt.alt@gmail.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
To: pgsql-general@postgresql.org
Subject: Re: replication lag despite corrective config
Date: Tue, 20 Nov 2018 18:36:23 -0800
Message-ID: <f8fd1c33-e2e9-7794-8f0a-46a81472e9b5@gmail.com> (raw)
In-Reply-To: <489acb50e9f4cb043ec4797f338ae06e66c0287c.camel@cybertec.at>
References: <CAGem3qCCP5c7JZUMApteK7TXT2yMzVi_Yy2nsZ5Pn=R30LrDvw@mail.gmail.com>
<489acb50e9f4cb043ec4797f338ae06e66c0287c.camel@cybertec.at>
On 11/19/18 11:09 PM, Laurenz Albe wrote:
> With these settings, any conflicting query will be canceled after five
> minutes. Perhaps your actual settings are different.
>
> What do you get for
>
> SELECT * FROM pg_settings WHERE name = 'max_standby_streaming_delay';
Hi Laurenz, thanks for backing up my understanding.
The settings are as I reported:
db=> show max_standby_streaming_delay;
max_standby_streaming_delay
-----------------------------
5min
db=> show hot_standby_feedback;
hot_standby_feedback
----------------------
on
db=> show max_standby_archive_delay;
max_standby_archive_delay
---------------------------
30s
db=> select * from pg_settings where name = 'max_standby_streaming_delay';
-[ RECORD 1 ]---+----------------------------------------------------------
name | max_standby_streaming_delay
setting | 300000
unit | ms
category | Replication / Standby Servers
short_desc | Sets the maximum delay before canceling queries when a
<snip>
extra_desc | <<NULL>>
context | sighup
vartype | integer
source | configuration file
min_val | -1
max_val | 2147483647
enumvals | <<NULL>>
boot_val | 30000
reset_val | 300000
sourcefile | <<NULL>>
sourceline | <<NULL>>
pending_restart | f
In case it's of additional interest, the full configs for the replica
and the primary are here:
https://gist.github.com/wkalt/a33e7628c63bfc71a6d0ee85103302d9
and here: https://gist.github.com/wkalt/a9dd5ceb0b01b50615c51063ee972117.
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: wyatt.alt@gmail.com, laurenz.albe@cybertec.at
Subject: Re: replication lag despite corrective config
In-Reply-To: <f8fd1c33-e2e9-7794-8f0a-46a81472e9b5@gmail.com>
References: <CAGem3qCCP5c7JZUMApteK7TXT2yMzVi_Yy2nsZ5Pn=R30LrDvw@mail.gmail.com> <489acb50e9f4cb043ec4797f338ae06e66c0287c.camel@cybertec.at> <f8fd1c33-e2e9-7794-8f0a-46a81472e9b5@gmail.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