pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: logical Replication
Date: Mon, 20 Aug 2018 10:20:57 +0300
Message-ID: <17b9b7a5-5377-b904-0e8a-e72e72efe1ef@matrix.gatewaynet.com> (raw )
In-Reply-To: <1534748661624-0.post@n3.nabble.com >
References: <emb84ebd01-d8b2-403e-b8ff-861bedd4b18d@iboss01081 >
<CAGDYbUNCC+7rUw_P_xmjgYFpQdaZ6LsjxkzkvNYgV4oRAfMVwg@mail.gmail.com >
<em58730ba1-a0a7-4e63-a20d-ae8bd3076716@iboss01081 >
<1534224580242-0.post@n3.nabble.com >
<emeb045759-a361-420c-a956-011d96e0e4f4@iboss01081 >
<1534746282900-0.post@n3.nabble.com >
<b4aa40be-d9af-de0e-c9dd-e4e42da0b0df@matrix.gatewaynet.com >
<1534747341264-0.post@n3.nabble.com >
<d6ed4da6-2cde-77f2-77bd-8e0d921fc61f@matrix.gatewaynet.com >
<1534748661624-0.post@n3.nabble.com >
On 20/08/2018 10:04, pavan95 wrote:
>>> But When I insert data in the publisher, And perform a check on the
>>> subscriber, it is not getting replicated(most of the times) until I drop
>>> and
>>> recreate my SUBSCRIPTION.
>> OS? (Linux, BSD, etc)
> *Ubuntu 16.04.5 LTS*
>> PostgreSQL Version?
> *PostgreSQL 10.4 (Ubuntu 10.4-2.pgdg16.04+1) on x86_64-pc-linux-gnu,
> compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609, 64-bit*
>> Also give the current settings of wal_receiver_timeout , wal_sender_timeout
> , increasing those to '5 min' solved my issues.
> *1) wal_receiver_timeout: 1min
> 2) wal_sender_timeout: 1min*
>
> How increasing above params related to the replication lag?
It helps with the ERRORs you get (e.g.
worker process: logical replication worker for subscription 33650 sync 20258 (PID 32898) exited with exit code 1
or
worker process: logical replication worker for subscription 185231525 (PID 78166) exited with exit code 1
Now on the publisher side what does :
select * from pg_stat_replication ;
tell you?
>
> Looking forward hearing from you!!!
>
>
> Regards,
> Pavan
>
>
>
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html
>
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
view thread (31+ messages) latest in thread
Message-ID: <17b9b7a5-5377-b904-0e8a-e72e72efe1ef@matrix.gatewaynet.com>
Permalink: ../17b9b7a5-5377-b904-0e8a-e72e72efe1ef@matrix.gatewaynet.com/
Also on: postgresql.org/message-id/17b9b7a5-5377-b904-0e8a-e72e72efe1ef@matrix.gatewaynet.com
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: achill@matrix.gatewaynet.com, pgsql-admin@lists.postgresql.org
Subject: Re: logical Replication
In-Reply-To: <17b9b7a5-5377-b904-0e8a-e72e72efe1ef@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