Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 22F211337B69 for ; Sun, 30 Jan 2011 15:46:32 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 20654-08 for ; Sun, 30 Jan 2011 19:46:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gw0-f46.google.com (mail-gw0-f46.google.com [74.125.83.46]) by mail.postgresql.org (Postfix) with ESMTP id A65881337B67 for ; Sun, 30 Jan 2011 15:46:24 -0400 (AST) Received: by gwj20 with SMTP id 20so1727937gwj.19 for ; Sun, 30 Jan 2011 11:46:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language; bh=iLaNBknY647asPMDwfOe8dx74pNGXfkw9S/IL2XoDbo=; b=VvmEBulhfMqfSCmaZUaIEeknCwB1yJOHCKakHooOrRBG7cdzf6oxFKm8kir+JoEtb6 eedxCpCkBQUBfjFbluYZMsWmVpqC7cxW0mNCenBHJbQTDzKQCPv1HEjlN86t01N8nZiw VmVUkCtM0C3VEG/9aBkhF/i+FpvPcaNhwWYLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; b=ofcWxay+BT/Tw2AmZTQnyiGe0MrCxSUqmOH7QMO4oUv0xjWHaGegK+xnvL5giBFRUG k85+JNWd96mgIYs20b/pX+ST/97WGuFayNmbo0Gpk7RZHM5+PuqYqAG12F6fd4kPOZm6 1wOw+gEx4LZPohu1xeX5DLK5K1ZE/cbcdQJyw= Received: by 10.90.78.12 with SMTP id a12mr7811019agb.38.1296416783058; Sun, 30 Jan 2011 11:46:23 -0800 (PST) Received: from Duality (65-101-250-169.hlrn.qwest.net [65.101.250.169]) by mx.google.com with ESMTPS id b19sm24860335ana.27.2011.01.30.11.46.21 (version=SSLv3 cipher=RC4-MD5); Sun, 30 Jan 2011 11:46:22 -0800 (PST) From: "mark" To: "'Robert Haas'" Cc: References: <201101270124.p0R1OIpY051049@wwwmaster.postgresql.org> <034301cbbf15$bc078920$34169b60$@com> In-Reply-To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcvAspQBS0FNa4nvQ/+7+IqcekgjzQAA3M2Q Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201101/244 X-Sequence-Number: 29266 > -----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 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