From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: zoulx1982 <zoulx1982@163.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: 回复:Re: 回复:Re: [BUGS] BUG #5853: when the walsender cannot exit when reboot slave computer
Date: Fri, 28 Jan 2011 11:15:07 +0200
Message-ID: <4D42891B.7040609@enterprisedb.com> (raw)
In-Reply-To: <55f972f3.5a8.12dcb625a4d.Coremail.zoulx1982@163.com>
References: <55f972f3.5a8.12dcb625a4d.Coremail.zoulx1982@163.com>
(I repeat: please keep the mailing list cc'd so that other can help)
On 28.01.2011 08:49, zoulx1982 wrote:
> when the slave computer is reset , there are two situation:
> 1. the primary don't produce WAL, so walsender won't send any XLOG
> I use "netstat -anp | grep postgres" to find the connection state is ESTABLISHED
>
> 2. the primary produce WAL and need to send to walreceiver, but there need a long time to wait timeout(about 15 minutes)
> in this situation, the connection state is also ESTABLISHED
Yeah, 15 minutes is the timeout in TCP. I don't remember if that's just
a default that can be changed in the OS, or a requirement of the protocol.
> whether we should set a reasonable timeout to avoid waiting long time?
You can use tcp_keep_alive_* settings to somewhat alleviate that (see
manual
http://www.postgresql.org/docs/9.0/interactive/warm-standby.html#STREAMING-REPLICATION),
but other than that there's currently no application-level timeout.
A lingering walsender shouldn't normally cause any problems, though, it
will timeout eventually.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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-bugs@postgresql.org
Cc: heikki.linnakangas@enterprisedb.com, zoulx1982@163.com
Subject: Re: 回复:Re: 回复:Re: [BUGS] BUG #5853: when the walsender cannot exit when reboot slave computer
In-Reply-To: <4D42891B.7040609@enterprisedb.com>
References: <55f972f3.5a8.12dcb625a4d.Coremail.zoulx1982@163.com> <4D42891B.7040609@enterprisedb.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