From: mark <dvlhntr@gmail.com>
To: 'Robert Haas' <robertmhaas@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5851: ROHS (read only hot standby) needs to be restarted manually in somecases.
Date: Sun, 30 Jan 2011 12:45:20 -0700
Message-ID: <041001cbc0b6$3b4f3a60$b1edaf20$@com> (raw)
In-Reply-To: <AANLkTikCFnVHXu4OXaZav9xvxFWU+UmMV1f5mkfPhe5q@mail.gmail.com>
References: <201101270124.p0R1OIpY051049@wwwmaster.postgresql.org>
<AANLkTikpO4DVxUNigr2GbW6EtaQm4tgG4FW6N+hgzWZg@mail.gmail.com>
<034301cbbf15$bc078920$34169b60$@com>
<AANLkTikCFnVHXu4OXaZav9xvxFWU+UmMV1f5mkfPhe5q@mail.gmail.com>
> -----Original Message-----
> From: Robert Haas [mailto:robertmhaas@gmail.com]
> Sent: Sunday, January 30, 2011 12:19 PM
> To: mark
> Cc: pgsql-bugs@postgresql.org
> Subject: Re: [BUGS] BUG #5851: ROHS (read only hot standby) needs to be
> restarted manually in somecases.
>
> On Fri, Jan 28, 2011 at 1:03 PM, mark <dvlhntr@gmail.com> wrote:
> > When showing the setting on the slave or master all tcp_keepalive
> settings
> > (idle, interval and count) are showing 0;
> >
> > The config file shows interval and count commented out, but idle in
> the
> > config file is set to 2100.
> >
> > Possible that "show tcp_keepalive_idle;" isn't reporting accurately ?
> (or a
> > value that high isn't be accepted?)
> >
> > I have reloaded configs and still seeing 0's
> >
> >
> >
> > I assume you would suggest I turn that number down... a lot.
>
> Yeah, the defaults are way too long for our purposes. The way to get
> this set correctly, I think, is to set it in the primary_conninfo
> stream on the slave. You end up with something like this:
>
> primary_conninfo='host=blahblah user=bob keepalives_idle=XX
> keepalives_interval=XX keepalives_count=XX'
>
Thanks I will try this on Monday and will report back if it fixes the
problem. (however since I can't reproduce the issue on demand it might be a
waiting game. Might not know for a month or so tho)
-Mark
> I'm of the opinion that we really need an application-level keepalive
> here, but the above is certainly a lot better than nothing.
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
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: dvlhntr@gmail.com, robertmhaas@gmail.com
Subject: Re: BUG #5851: ROHS (read only hot standby) needs to be restarted manually in somecases.
In-Reply-To: <041001cbc0b6$3b4f3a60$b1edaf20$@com>
References: <201101270124.p0R1OIpY051049@wwwmaster.postgresql.org> <AANLkTikpO4DVxUNigr2GbW6EtaQm4tgG4FW6N+hgzWZg@mail.gmail.com> <034301cbbf15$bc078920$34169b60$@com> <AANLkTikCFnVHXu4OXaZav9xvxFWU+UmMV1f5mkfPhe5q@mail.gmail.com> <041001cbc0b6$3b4f3a60$b1edaf20$@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