Re: Check replication lag - Mailing list pgsql-general

From Thomas Munro
Subject Re: Check replication lag
Date
Msg-id CA+hUKGK+gHZbZiHy30J_ft2Srywa8WZ314nrCG0e7UukxPeDeA@mail.gmail.com
Whole thread Raw
In response to Check replication lag  (Sreejith P <sreejith@lifetrenz.com>)
List pgsql-general
On Thu, Aug 6, 2020 at 7:02 AM Sreejith P <sreejith@lifetrenz.com> wrote:
> IN SYNC mode of replication what would be the impact on Master DB server in terms of over all performance  ?

The pg_stat_replication columns write_lag, flush_lag and replay_lag
are designed tell you how long to expect commits to take for
synchronous standbys, based on recent history, if synchronous_commit
it set to remote_write, on or remote_apply respectively.  Those times
tell you about commit latency, which limits sequential commit rate for
each session.



pgsql-general by date:

Previous
From: Rama Krishnan
Date:
Subject: Re: Doubt in pgbase
Next
From: Michael Paquier
Date:
Subject: Re: [EXTERNAL] RE: PostgreSQL-12 replication. Check replication lag