pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Fernández <fmartin91@gmail.com>
To: pgsql-general@postgresql.org
Subject: Logical Replication, CPU load and Locking contention
Date: Tue, 9 Mar 2021 22:56:15 -0300
Message-ID: <184F3383-E7EC-40FB-8D9B-42E8EBC8D92C@gmail.com> (raw)

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




view thread (6+ messages)  latest in thread

Message-ID: <184F3383-E7EC-40FB-8D9B-42E8EBC8D92C@gmail.com>
Permalink:  ../184F3383-E7EC-40FB-8D9B-42E8EBC8D92C@gmail.com/
Also on:    postgresql.org/message-id/184F3383-E7EC-40FB-8D9B-42E8EBC8D92C@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: fmartin91@gmail.com
  Subject: Re: Logical Replication, CPU load and Locking contention
  In-Reply-To: <184F3383-E7EC-40FB-8D9B-42E8EBC8D92C@gmail.com>
  References: <184F3383-E7EC-40FB-8D9B-42E8EBC8D92C@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox