Обсуждение: is replication effected by exclusive locks?

Поиск
Список
Период
Сортировка

is replication effected by exclusive locks?

От
gleeco
Дата:

hello - first a thank-you to this list for all previous questions answered here!

In our cluster, we're using read-only replicas for answering postgis geo queries.  Often, i see multiple queries coming in concurrently & regularly taking 2-10 seconds.   When looking closer at these queries, i see they all use an ExclusiveLock.   

And when this is the query traffic, there can be increasing replication lag.
But also - there can be waves of tx cancellation due to conflicts, ie. replication.

note that in this setup, pg_vacuum_defer_cleanup_age = 0 so the cancels make sense to me.

So the simple question: do ExclusiveLock compete or block application of wal logs on read replicas?

thanks in advance for thoughts/tips/links/etc


Re: is replication effected by exclusive locks?

От
gleeco
Дата:
a few more details in replica config:

pg version: 9.3.16

wal_level: hot_standby
max_standby_archive_delay: 15s
max_standby_streaming_delay: 60s
wal_receiver_status_interval: 10s