Re: postgresql replication replay lag

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Kenny Bachman <kenny(dot)bachman17(at)gmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: postgresql replication replay lag
Date: 2021-12-29 04:53:57
Message-ID: 9350d584fdedaee8161f40ee70798a7d443b3f2c.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, 2021-12-27 at 19:22 +0300, Kenny Bachman wrote:
> I have a 3-nodes Patroni cluster with PG 12.9. There is a replay lag on the third node.
> I don't understand why there is lag. The replication view output is below :
>
> Extra info: There is no long-running query on the third node.
>
> Where can I check to detect what's causing this?

On the lagging node, examine

SELECT * FROM pg_stat_activity;

That should show you what causes the lag.

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Daulat 2021-12-29 06:17:29 Re: GenSchemaSpy
Previous Message João Gaspar 2021-12-28 18:33:28 Re: GenSchemaSpy