pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Logical replication very slow
Date: Mon, 25 Feb 2019 09:08:00 +0200
Message-ID: <858111e7-37a1-d55c-099a-c80b20aea76a@matrix.gatewaynet.com> (raw)
In-Reply-To: <CAEzn=HS43zRb--he3v-mgicsoRRioZc7YSk+vbXSxjEYt0r6hQ@mail.gmail.com>
References: <CAEzn=HS43zRb--he3v-mgicsoRRioZc7YSk+vbXSxjEYt0r6hQ@mail.gmail.com>

On 25/2/19 8:52 π.μ., Boris Sagadin wrote:
> Doing an initial replica and trying to find a bottleneck, Ubuntu 16.04, NVMe disks, PgSQL v10.7, AWS. With binary replication, DB is replicated at good speed, around 500MB/s. Trying LR now for a big 
> table (about 1.4TB with 2 indexes) and the speed is only about 2MB/s.
>
Is logical replication subscriber in "streaming" state or in initial snapshot? What's the behavior after the initial snapshot, when it gets into streaming state?
> Checked disk util with iostat and only about 20% utilized on master, 15% on target, CPU load on master is low. On slave I can see the "logical replication worker" process is taking about 70% CPU 
> time on a single core, machine has 16 cores.
>
> Is there a setting I am missing here? Any ideas appreciated.
>
> Boris
>
>
>


-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

view thread (6+ messages)  latest in thread

Message-ID: <858111e7-37a1-d55c-099a-c80b20aea76a@matrix.gatewaynet.com>
Permalink:  ../858111e7-37a1-d55c-099a-c80b20aea76a@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/858111e7-37a1-d55c-099a-c80b20aea76a@matrix.gatewaynet.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: achill@matrix.gatewaynet.com
  Subject: Re: Logical replication very slow
  In-Reply-To: <858111e7-37a1-d55c-099a-c80b20aea76a@matrix.gatewaynet.com>
  References: <CAEzn=HS43zRb--he3v-mgicsoRRioZc7YSk+vbXSxjEYt0r6hQ@mail.gmail.com> <858111e7-37a1-d55c-099a-c80b20aea76a@matrix.gatewaynet.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