Logical Replication, CPU load and Locking contention

From: Martín Fernández <fmartin91(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Logical Replication, CPU load and Locking contention
Date: 2021-03-10 01:56:15
Message-ID: 184F3383-E7EC-40FB-8D9B-42E8EBC8D92C@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I’m troubleshooting a problem at my company with a pg 12 cluster that we run.

We are using Amazon DMS to replicate data from our database into S3 buckets. DMS replicates data by using logical replication slots.

After introducing DMS in our environment, we have seen an increase in CPU load of 20 points at business hours (from ~60% to ~80%).

The other thing that we have identified is that AccessShareLocks increase considerably when DMS running.

Based on this information, I’m trying to understand if this is something expected when running logical replication or not. We’ve been running physical replication for several years and we haven’t seen nothing like this. It could be the case that the issue is not related at all with logical replication and is purely a DMS artifact.

Thanks before hand!

Best,
Martín

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Baldwin 2021-03-10 03:17:54 Using a 'loopback' FDW
Previous Message Tom Lane 2021-03-10 00:18:21 Re: Need help with clarification on stored procedure support in PostGreSQL database