pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edson Richter <edsonrichter@hotmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: RE: Replication: slave server has 3x size of production server?
Date: Sun, 23 Feb 2020 16:04:45 +0000
Message-ID: <MN2PR01MB53272BB0BED23EF660DA8A18CFEF0@MN2PR01MB5327.prod.exchangelabs.com> (raw)
In-Reply-To: <22dad45b-7d11-807e-c258-1e9872561f3b@aklaver.com>
References: <MN2PR01MB53275B5A45E7D752514934CECFEE0@MN2PR01MB5327.prod.exchangelabs.com>
	<98f036e0-9bf2-8798-8742-9dba0601fb9a@aklaver.com>
	<MN2PR01MB5327EA9352994C5BAA1F3E94CFEE0@MN2PR01MB5327.prod.exchangelabs.com>
	<590174e0-256a-fe72-468a-0bcf77ca0df8@aklaver.com>
	<MN2PR01MB53271A46CE28B2FDF93EE77DCFEE0@MN2PR01MB5327.prod.exchangelabs.com>
	<bde60fe9-f703-b8da-b253-10977b1c82a7@aklaver.com>
	<MN2PR01MB5327AC08F819CCED387027FACFEE0@MN2PR01MB5327.prod.exchangelabs.com>
	<46ab8dff-645a-0521-16e8-821db6fc6d9c@aklaver.com>
	<MN2PR01MB53274CD8D050FBE6F824DC2ECFEE0@MN2PR01MB5327.prod.exchangelabs.com>
	<22dad45b-7d11-807e-c258-1e9872561f3b@aklaver.com>

________________________________

De: Adrian Klaver <adrian.klaver@aklaver.com>
Enviado: sábado, 22 de fevereiro de 2020 20:34
Para: Edson Richter <edsonrichter@hotmail.com>; pgsql-general <pgsql-general@postgresql.org>
Assunto: Re: Replication: slave server has 3x size of production server?

On 2/22/20 2:51 PM, Edson Richter wrote:

>
> Yes, it is working. Last X'log file is present on all thee servers.
> Also, comparting last transaction number on master and slave shows that
> all are in sync.
> Last, but not least, select max(id) from a busy table shows same id
> (when queried almost simultaneously using a simple test routine).

Well something is keeping those WAL file around. You probably should
analyze your complete setup to see what else is touching those servers.

It is safe to add a "--remove-source-files" into my archive_command as folows into my slave server?


archive_command = 'rsync --remove-source-files -e "ssh -2 -C -p 2022" -az %p barman@192.168.0.2:/dados/barman/dbcluster/incoming/%f'


and remove the xlog file after copy to barman?
I mean, whem the archive command starts, the wal has been already processed by the slave server, so we don't need them after copying to backup server, right?


Regards,

Edson

>
>     >
>     >
>     > The files are about 7 months old.
>
>     Are there newer files that would indicate that the streaming is working?
>
>
> Yes, streaming is working properly (as stated above).
>
> Thanks,
>
>
> Edson Richter
>
>
>>



--
Adrian Klaver
adrian.klaver@aklaver.com

view thread (14+ messages)  latest in thread

Message-ID: <MN2PR01MB53272BB0BED23EF660DA8A18CFEF0@MN2PR01MB5327.prod.exchangelabs.com>
Permalink:  ../MN2PR01MB53272BB0BED23EF660DA8A18CFEF0@MN2PR01MB5327.prod.exchangelabs.com/
Also on:    postgresql.org/message-id/MN2PR01MB53272BB0BED23EF660DA8A18CFEF0@MN2PR01MB5327.prod.exchangelabs.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: edsonrichter@hotmail.com, adrian.klaver@aklaver.com
  Subject: Re: Replication: slave server has 3x size of production server?
  In-Reply-To: <MN2PR01MB53272BB0BED23EF660DA8A18CFEF0@MN2PR01MB5327.prod.exchangelabs.com>
  References: <MN2PR01MB53275B5A45E7D752514934CECFEE0@MN2PR01MB5327.prod.exchangelabs.com> <98f036e0-9bf2-8798-8742-9dba0601fb9a@aklaver.com> <MN2PR01MB5327EA9352994C5BAA1F3E94CFEE0@MN2PR01MB5327.prod.exchangelabs.com> <590174e0-256a-fe72-468a-0bcf77ca0df8@aklaver.com> <MN2PR01MB53271A46CE28B2FDF93EE77DCFEE0@MN2PR01MB5327.prod.exchangelabs.com> <bde60fe9-f703-b8da-b253-10977b1c82a7@aklaver.com> <MN2PR01MB5327AC08F819CCED387027FACFEE0@MN2PR01MB5327.prod.exchangelabs.com> <46ab8dff-645a-0521-16e8-821db6fc6d9c@aklaver.com> <MN2PR01MB53274CD8D050FBE6F824DC2ECFEE0@MN2PR01MB5327.prod.exchangelabs.com> <22dad45b-7d11-807e-c258-1e9872561f3b@aklaver.com> <MN2PR01MB53272BB0BED23EF660DA8A18CFEF0@MN2PR01MB5327.prod.exchangelabs.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