Re: replication lag despite corrective config

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: replication lag despite corrective config
Дата
Msg-id 489acb50e9f4cb043ec4797f338ae06e66c0287c.camel@cybertec.at
обсуждение исходный текст
Ответ на replication lag despite corrective config  (Wyatt Alt <wyatt.alt@gmail.com>)
Ответы Re: replication lag despite corrective config  (Wyatt Alt <wyatt.alt@gmail.com>)
Список pgsql-general
On Mon, 2018-11-19 at 17:46 -0800, Wyatt Alt wrote:
> I've been struggling to eliminate replication lag on a Postgres 9.6.6
> instance on Amazon RDS. I believe the lag is caused by early cleanup
> conflicts from vacuums on the master, because I can reliably resolve
> it by killing long-running queries on the standby. I most recently
> saw ten hours of lag on Saturday and addressed it this way.
> 
> The standby is running with
> hot_standby_feedback = on
> max_standby_streaming_delay = 5min
> max_standby_archive_delay = 30s

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';

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com



В списке pgsql-general по дате отправления:

Предыдущее
От: Nicklas Karlsson
Дата:
Сообщение: Package-support plans?
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Package-support plans?