Re: Postgres 9 slave lag

Поиск
Список
Период
Сортировка
Искать
От
Kevin Grittner
Тема
Re: Postgres 9 slave lag
Дата
Msg-id
4DA33058020000250003C699@gw.wicourts.gov
Ответ на
Postgres 9 slave lag (Saurabh Agrawal)
Список
Дерево обсуждения
Postgres 9 slave lag Saurabh Agrawal <saurabh.miet@gmail.com>
Re: Postgres 9 slave lag "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Saurabh Agrawal  wrote:
 
> max_standby_archive_delay = -1
> 
> I noticed that whenever long running query executes on slave,
> slave starts lagging by master and as soon as query completes log
> files get applied immediately. Please help how can I avoid slave
> lag.
 
You can adjust max_standby_archive_delay to the maximum amount of
time you want replication to block waiting for your query.  If that
is exceeded, your query will be canceled to allow replication to
continue.
 
http://www.postgresql.org/docs/9.0/interactive/hot-standby.html#HOT-STANDBY-CONFLICT
 
-Kevin
В списке pgsql-admin по дате отправления
От: Jerry Sievers
Дата:
От: Simon Luijk
Дата:
FAQ