Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evSGo-0002W4-LQ for pgsql-general@arkaria.postgresql.org; Mon, 12 Mar 2018 18:34:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1evSGm-0001yr-VQ for pgsql-general@arkaria.postgresql.org; Mon, 12 Mar 2018 18:34:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evSGm-0001ya-Md for pgsql-general@lists.postgresql.org; Mon, 12 Mar 2018 18:34:00 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1evSGh-0005L7-Bf for pgsql-general@postgresql.org; Mon, 12 Mar 2018 18:34:00 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id BEF8ABA9CE09 for ; Mon, 12 Mar 2018 11:33:52 -0700 (MST) Date: Mon, 12 Mar 2018 11:33:52 -0700 (MST) From: greigwise To: pgsql-general@postgresql.org Message-ID: <1520879632779-0.post@n3.nabble.com> Subject: pglogical lag due to replication timeout MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello all. I've recently configured logical replication on postgres 9.6.5 using pglogical 2.1.1. The problem I'm seeing is pretty constant stream of these errors on the service side in the postgres logs: LOG: terminating walsender process due to replication timeout After so many of these, I can see on the replication target side, that things are not being updated. Eventually, the source server seems to retry and then all the updates go through, but it seems like there's more lag than there really should be due to all these "replication timeouts". I'm not seeing anything on the network side, it's really a pretty fast connection between the 2 servers, I can't see that being the issue. Plus I have the wal_sender_timeout set to 600 (10 minutes) which seems like it should be way overkill. Any advice on this? Thanks, Greig Wise -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html