pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
To: Tiemen Ruiten <t.ruiten@tech-lab.io>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: very high replay_lag on 3-node cluster
Date: Mon, 22 Jul 2019 11:27:54 +0200
Message-ID: <20190722112754.512b4840@firost> (raw)
In-Reply-To: <CAEkBuzdOt+q2Qq9pMWALOq-67HWE5zT3_-XwfLEyN+-H71EycQ@mail.gmail.com>
References: <CAEkBuzfxH26a_G6ue=3zZhkLD2YTkmvz45LioeGMMesT1Cu_8A@mail.gmail.com>
	<CAEkBuzdOt+q2Qq9pMWALOq-67HWE5zT3_-XwfLEyN+-H71EycQ@mail.gmail.com>

Hi,

On Mon, 22 Jul 2019 11:05:57 +0200
Tiemen Ruiten <t.ruiten@tech-lab.io> wrote:
[...]
> > Now to my current issue: I took the advice to add more monitoring on
> > replay lag (using pg_last_xact_replay_timestamp) and things are not looking
> > good. Last night replication lagged by almost 6 hours on one of the
> > nodes[3], but eventually caught up. As you can see in that screenshot,
> > ph-sql-03 is consistently slower to replay than ph-sql-05 (ph-sql-04 is the
> > current master) and there happen to be different SSD's in ph-sql-03
> > (Crucial MX300 vs Crucial MX500 in the other two), which makes me think
> > this is IO related.

Such a difference is quite surprising. Moreover, I suppose you have some
caching in front of disks (either RAID or SAN?). Could you describe your disk
stack with more details?

Do you have any detailed metrics about disks and network IO to share?

The network is the same for both nodes?





view thread (5+ messages)  latest in thread

Message-ID: <20190722112754.512b4840@firost>
Permalink:  ../20190722112754.512b4840@firost/
Also on:    postgresql.org/message-id/20190722112754.512b4840@firost

 · 

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: ioguix@free.fr, t.ruiten@tech-lab.io
  Subject: Re: very high replay_lag on 3-node cluster
  In-Reply-To: <20190722112754.512b4840@firost>
  References: <CAEkBuzfxH26a_G6ue=3zZhkLD2YTkmvz45LioeGMMesT1Cu_8A@mail.gmail.com> <CAEkBuzdOt+q2Qq9pMWALOq-67HWE5zT3_-XwfLEyN+-H71EycQ@mail.gmail.com> <20190722112754.512b4840@firost>

* 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