From: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | Marcelo Kruger <marcelo(dot)kruger(at)neoway(dot)com(dot)br> |
Cc: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: [ADMIN] High replication lag - Stream Replication |
Date: | 2017-12-28 18:18:54 |
Message-ID: | CAOR=d=25UyVZZ0PzMeBXkZ80+Yqx04CzHuNyO9uMhsW-=rOAOA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Wed, Nov 8, 2017 at 6:38 AM, Marcelo Kruger
<marcelo(dot)kruger(at)neoway(dot)com(dot)br> wrote:
> Good afternoon,
>
> I have two servers hosted on Azure with PostgreSQL 9.6 databases. One database is production, the other is standby.
> For replication I use stream replication between servers. However the application of the archives in the standby database is slow, always generating replication lag.
>
> The replication lag increases considerably when queries are performed on the StandBy database. I wonder if there is any setting that can be made to improve this performance.
SNIP
> Configuration PostgreSQL StandBy
>
> postgres.conf
SNIP
> hot_standby = on
> hot_standby_feedback = on
I've recently run into the same thing and it's a result of long
running queries on the standby. Moving those queries to the master and
/ or fixing them to not run so long fixed out problem.
From | Date | Subject | |
---|---|---|---|
Next Message | flumbador | 2017-12-29 15:21:26 | Issue on restore / recover |
Previous Message | Fabrízio de Royes Mello | 2017-12-28 14:48:44 | Re: [ADMIN] High replication lag - Stream Replication |