Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYAJh-0004Zv-7E for pgsql-admin@arkaria.postgresql.org; Wed, 27 Jun 2018 13:17:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYAJf-0000Lc-L0 for pgsql-admin@arkaria.postgresql.org; Wed, 27 Jun 2018 13:16:59 +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 1fYAJf-0000LT-7N for pgsql-admin@lists.postgresql.org; Wed, 27 Jun 2018 13:16:59 +0000 Received: from truschnigg.info ([78.46.103.228]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYAJb-0002bx-Vb for pgsql-admin@lists.postgresql.org; Wed, 27 Jun 2018 13:16:58 +0000 Received: from vault.lan (84-112-34-152.cable.dynamic.surfer.at [84.112.34.152]) (Authenticated sender: colo) by truschnigg.info (Postfix) with ESMTPSA id 9B10840168; Wed, 27 Jun 2018 15:16:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=truschnigg.info; s=mail; t=1530105414; bh=/lpZo2jkDjfZUtcC2pCpLIYHoa0DB8uc4G4Mfr2PcBc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O+bQBpCa9j6TIlIRZqF+0JTNb+o36XbMuNnRj6LSDpYWjVlT3DyvQl+xo1AaPfIuN ObXUhP3ggvvArU3E3n2PrKV8NOcWGj2A4+P+/UJxCMt7zXZlnuCkwZieK3ZGw5l7a5 SaLfao/pXzpgYE+TNcxzYIZnWx7vV92Iex/+yHeQ= Date: Wed, 27 Jun 2018 15:16:52 +0200 From: Johannes Truschnigg To: Ganesh Korde Cc: pgsql-admin@lists.postgresql.org Subject: Re: Streaming replication connection break - unexpected EOF on standby connection Message-ID: <20180627131652.4zibah4oqscpkijh@vault.lan> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tpacwq5srbfmpecd" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --tpacwq5srbfmpecd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ganesh, On Wed, Jun 27, 2018 at 06:37:25PM +0530, Ganesh Korde wrote: > [...] > 1. Because of what reason, " unexpected EOF on standby connection" occurs > on primary db server? > 2. After replication disconnection, secondary should immediately connect = to > primary, but it takes some time, what could be the reason for this? =46rom skimming the log, it seems to me that there is an issue at the socket/network level, which yields the "connection reset by peer" eror message. What is the network between these two hosts like? Is it a WAN link; is a VPN or SSH tunnel involved? Do you have other, long-running TCP sessions between these peers, and do they experience similar or other problems? Do the hosts' link-layer stats hint at problems, e. g. packet loss? Do the hosts' kernels leave a message hinting at L2 connectivity problems in their debug ringbuff= ers (`dmesg`) at the time you observe the replication drop out? --=20 with best regards: - Johannes Truschnigg ( johannes@truschnigg.info ) www: https://johannes.truschnigg.info/ phone: +43 650 2 133337 xmpp: johannes@truschnigg.info Please do not bother me with HTML-email or attachments. Thank you. --tpacwq5srbfmpecd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEGu9IhkI+7/aKLUWF95W3jMsYfLUFAlszjkEACgkQ95W3jMsY fLUilA/+Ittt0IsoGQfRT5KACRB7vMUZKtil+RsbEQHtCz4oVPkiYQ92x1pDu+bS DY4sJ7UfMfHgd2nHQzOrg/n7ruA5RYbDrdVVOGwKJjhwc+3ufGXzBUeJzm96dHVE At2npLpcAodE6b2h92U8HO0JK4XPyQA+WfpWnwPvMUE9rC5dXwojysw3SL6uaSgn 9WOt1hfNWrRknHwlMRKIrkib/gt9XgVgwz6Jh0JHI6mMYHckZpuBNQYUlVOvZZAE S/PAoJ33QrzR96Uv7hyTflhESnuXF97n4GwGIibC6hHkpdQZ1OragNJHAUxSAAqU SVxwgfNjAt1FE9JzUCWg+e14Y4G0sQUMNfwtJMToHfW/hovWehDev/WvBVjldk8A JvGsy7NPL0q/0WrcPh0ditxj5okBCqpFzMmjMy31cnYxqy2haHGOypRcaOvb8wO4 +lHY9wXK8XZ+c/rFBjrFNZS4yflgALOarZ2NCO4cy8V1MQEJbhu4dkltt5T4l1M+ sF9B6pB1uGv0h+SqrWKsprc4GuRAwPQOk+rIdOQJ2lb+fwp1RTVE0L0K0+r2ECLY jbzeqi73cp5WmO2gBsAlE6TamYK6AR/9ubisvmcBidz6u3mMQ5Km+7xhJOIduu+K HFDJuBFUSrhk//Zf3+mT5rafz78EuyLhvgr7+fNYRqw2lT3ZRPk= =ygA7 -----END PGP SIGNATURE----- --tpacwq5srbfmpecd--