Re: Logical Replication Delay - Mailing list pgsql-general

From Greg Sabino Mullane
Subject Re: Logical Replication Delay
Date
Msg-id CAKAnmmLmvuo=TORx=hDw2y5fFOUc0sHb88O+6Z-Cs=oVtN9W4A@mail.gmail.com
Whole thread Raw
In response to Logical Replication Delay  (Ramakrishna m <ram.pgdb@gmail.com>)
Responses Re: Logical Replication Delay
List pgsql-general
On Sat, Sep 21, 2024 at 3:08 PM Ramakrishna m <ram.pgdb@gmail.com> wrote:

I would greatly appreciate any suggestions you may have to help avoid logical replication delays, whether through tuning database or operating system parameters, or any other recommendations

In addition to the things already answered:

* What is the use case for logical replication? I assume your local replicas are able to keep up just fine.

* Check the nature of the work for problems, e.g. ORM doing unnecessary/redundant updates, maintaining indexes that are not really needed

* Looks like your wal_segment_size was boosted to 1GB. What drove that change?

* Yes, autovacuum could affect things - make sure log_autovacuum_min_durations is set

Cheers,
Greg

 

pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: MError after replication in postgresql
Next
From: Adrian Klaver
Date:
Subject: Re: PgBackRest : Restore to a checkpoint shows further transactions