From: | Ramakrishna m <ram(dot)pgdb(at)gmail(dot)com> |
---|---|
To: | Greg Sabino Mullane <htamfids(at)gmail(dot)com>, Justin <zzzzz(dot)graf(at)gmail(dot)com> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org, ravisql09(at)gmail(dot)com |
Subject: | Re: Logical Replication Delay |
Date: | 2024-09-29 10:28:46 |
Message-ID: | CAG-eXHJNRhnjEbCYHdpcQULxaGqV0_JR4nSPxndRRUdshMNZ0A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi Justin and Greg,
Thank you for your input and recommendations. We understand your point
regarding separating the tables into different publications and
subscriptions.
However, due to certain business constraints, we are unable to implement
this approach at the moment.
*We are planning to set up logical replication from a standby to another
server. When the primary goes down, there is no issue as the standby
becomes the primary and the logical slots are already present. However,
when the standby goes down, these slots are not copied to the third node or
the primary by Patroni. Is there an option available to handle this
scenario? *
Regards,
Ram.
On Wed, 25 Sept 2024 at 20:12, Greg Sabino Mullane <htamfids(at)gmail(dot)com>
wrote:
> On Sat, Sep 21, 2024 at 3:08 PM Ramakrishna m <ram(dot)pgdb(at)gmail(dot)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
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | GF | 2024-09-29 12:26:42 | Re: Logical Replication Delay |
Previous Message | Durgamahesh Manne | 2024-09-29 04:13:44 | Re: Synchronize the dump with a logical slot with --snapshot |