pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Nicola Contu <nicola.contu@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Cc: Alessandro Aste <Alessandro.aste@gtt.net>
Subject: Re: Streaming replication - 11.5
Date: Fri, 13 Mar 2020 08:15:49 -0700
Message-ID: <7599ecd5-7baa-5f48-a82b-eddb536a07da@aklaver.com> (raw)
In-Reply-To: <CAMTZZh1giJXj09aBYYfe0hxSYkqY3JRW3=OdoPKRzRVkOKDptA@mail.gmail.com>
References: <CAMTZZh20bCNzf3o+OqVGbZqZ2SXjVkn-hP27A8Rpf_O_gC6yPg@mail.gmail.com>
	<89a1e4cd-1da5-7233-d8c3-5e19cc9d1b75@aklaver.com>
	<CAMTZZh0fDY2QxLsbvfh4A3u4zxe8hdQjpncGZEcUNS1hRFBA1g@mail.gmail.com>
	<1fdd13a5-d38b-8040-8261-c866bd782bd5@aklaver.com>
	<CAMTZZh220NGkCf9Y06gLA-Wq1eOX8qLjb7A66A5-S7HsjnHDgQ@mail.gmail.com>
	<e683dbd6-931c-86ab-2056-1e02f00a9273@aklaver.com>
	<CAMTZZh29P4KDXrJaRMABZbpLkFLYvEcm5crC7kHwCZp6PXZVWQ@mail.gmail.com>
	<5b5ef23c-31b8-6fe5-ffb2-610eddaa6e58@aklaver.com>
	<CAMTZZh0LwQ5yYZqPTVTXbn42bQPJ=dcQGVmC_JHV4jkhmJ41yQ@mail.gmail.com>
	<aa76f42b-1061-115f-ee9e-3fe809776f2d@aklaver.com>
	<CAMTZZh1H+M3eSuUcHp-5f2eZUb3ZS+0vBFzNEMXwgPp=Pv2smQ@mail.gmail.com>
	<1152bf92-de1d-f5b1-fa47-b0c61ffbe29d@aklaver.com>
	<CAMTZZh1ufgpxsPstwVf1dPVuT34Qzj0KXQBtGs_ZkmRyu_i59Q@mail.gmail.com>
	<CAMTZZh1giJXj09aBYYfe0hxSYkqY3JRW3=OdoPKRzRVkOKDptA@mail.gmail.com>

On 3/13/20 4:11 AM, Nicola Contu wrote:
> So in the logs I now see this :
> 
> 2020-03-13 11:03:42 GMT [10.150.20.22(45294)] [27804]: [1-1] 
> db=[unknown],user=replicator LOG:  terminating walsender process due to 
> replication timeout

Yeah that's been showing up the log snippets you have been posting.

To figure this out you will need to:

1) Make a list of what changed since the last time replication worked 
consistently.

2) Monitor the changed components, start logging or increase logging.

3) Monitor the chain of replication as whole, to catch changes that you 
do not know about. Since you seem to be operating across data centers 
that would include verifying the network.

> 
> So I tried increasing the wal_sender_timeout to 300s but it did not help
> 
> Il giorno gio 12 mar 2020 alle ore 15:56 Nicola Contu 
> <nicola.contu@gmail.com <mailto:nicola.contu@gmail.com>> ha scritto:
> 
>     The encryption is at os level. So the drives are encrypted with a
>     password where the db saves data
> 
>     Il gio 12 mar 2020, 15:51 Adrian Klaver <adrian.klaver@aklaver.com
>     <mailto:adrian.klaver@aklaver.com>> ha scritto:
> 
>         On 3/12/20 4:31 AM, Nicola Contu wrote:
>          > The replicator is ok and the replicated as well.
>          > %Cpu(s):  0.2 us,  1.0 sy,  0.0 ni, 94.8 id,  4.0 wa,  0.0
>         hi,  0.0 si,
>          >   0.0 st
>          >
>          > CPU is really low on both.
>          >
>          > I am running pg_basebackup again everytime.
>          > Any other suggestions?
>          >
> 
>         I have to believe their is a connection between changing to
>         encrypting
>         the disks and your issues. Not sure what, but to help how is the
>         encryption being done and what program is being used?
> 
> 
>         -- 
>         Adrian Klaver
>         adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (16+ messages)  latest in thread

Message-ID: <7599ecd5-7baa-5f48-a82b-eddb536a07da@aklaver.com>
Permalink:  ../7599ecd5-7baa-5f48-a82b-eddb536a07da@aklaver.com/
Also on:    postgresql.org/message-id/7599ecd5-7baa-5f48-a82b-eddb536a07da@aklaver.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: adrian.klaver@aklaver.com, nicola.contu@gmail.com, Alessandro.aste@gtt.net
  Subject: Re: Streaming replication - 11.5
  In-Reply-To: <7599ecd5-7baa-5f48-a82b-eddb536a07da@aklaver.com>
  References: <CAMTZZh20bCNzf3o+OqVGbZqZ2SXjVkn-hP27A8Rpf_O_gC6yPg@mail.gmail.com> <89a1e4cd-1da5-7233-d8c3-5e19cc9d1b75@aklaver.com> <CAMTZZh0fDY2QxLsbvfh4A3u4zxe8hdQjpncGZEcUNS1hRFBA1g@mail.gmail.com> <1fdd13a5-d38b-8040-8261-c866bd782bd5@aklaver.com> <CAMTZZh220NGkCf9Y06gLA-Wq1eOX8qLjb7A66A5-S7HsjnHDgQ@mail.gmail.com> <e683dbd6-931c-86ab-2056-1e02f00a9273@aklaver.com> <CAMTZZh29P4KDXrJaRMABZbpLkFLYvEcm5crC7kHwCZp6PXZVWQ@mail.gmail.com> <5b5ef23c-31b8-6fe5-ffb2-610eddaa6e58@aklaver.com> <CAMTZZh0LwQ5yYZqPTVTXbn42bQPJ=dcQGVmC_JHV4jkhmJ41yQ@mail.gmail.com> <aa76f42b-1061-115f-ee9e-3fe809776f2d@aklaver.com> <CAMTZZh1H+M3eSuUcHp-5f2eZUb3ZS+0vBFzNEMXwgPp=Pv2smQ@mail.gmail.com> <1152bf92-de1d-f5b1-fa47-b0c61ffbe29d@aklaver.com> <CAMTZZh1ufgpxsPstwVf1dPVuT34Qzj0KXQBtGs_ZkmRyu_i59Q@mail.gmail.com> <CAMTZZh1giJXj09aBYYfe0hxSYkqY3JRW3=OdoPKRzRVkOKDptA@mail.gmail.com> <7599ecd5-7baa-5f48-a82b-eddb536a07da@aklaver.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