From: Johannes Truschnigg <johannes@truschnigg.info>
To: Ganesh Korde <ganeshakorde@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Streaming replication connection break - unexpected EOF on standby connection
Date: Wed, 27 Jun 2018 15:16:52 +0200
Message-ID: <20180627131652.4zibah4oqscpkijh@vault.lan> (raw)
In-Reply-To: <CAPNyb0WZL5aSUJNHbMPKkbn08ewOEortaVQd1urBfxoRmTSV8g@mail.gmail.com>
References: <CAPNyb0WZL5aSUJNHbMPKkbn08ewOEortaVQd1urBfxoRmTSV8g@mail.gmail.com>
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?
From 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 ringbuffers
(`dmesg`) at the time you observe the replication drop out?
--
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.
Attachments:
signature.asc (application/pgp-signature, 832B) download
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-admin@postgresql.org
Cc: johannes@truschnigg.info, ganeshakorde@gmail.com
Subject: Re: Streaming replication connection break - unexpected EOF on standby connection
In-Reply-To: <20180627131652.4zibah4oqscpkijh@vault.lan>
References: <CAPNyb0WZL5aSUJNHbMPKkbn08ewOEortaVQd1urBfxoRmTSV8g@mail.gmail.com> <20180627131652.4zibah4oqscpkijh@vault.lan>
* 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