Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 70DA71337B77 for ; Fri, 28 Jan 2011 14:04:51 -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 51668-02 for ; Fri, 28 Jan 2011 18:04:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) by mail.postgresql.org (Postfix) with ESMTP id 52E231337B51 for ; Fri, 28 Jan 2011 14:04:43 -0400 (AST) Received: by qyk12 with SMTP id 12so3888546qyk.19 for ; Fri, 28 Jan 2011 10:04:43 -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=Zq/97XWtussl8C/j+LUJI4PT2QnBc+3sOLQMoQ+ic5o=; b=uzKUb24Wns45tU6iZY+4juvhKrFMTVA23PWrRFr3i5zRjH5kQYBpsKrXPfVc4vKBCJ hTt2ntHvV6q/vjprooaifSyFDrw6CRlTW0cxgp44p1nDaA4nagehiGY6fCvev2kXi2rK mJobl8DMCuch1UICHizKP6Gm/N+Dy4kgbGCWQ= 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=TEfdas6yOhGjVLQivTNogIh3sk8Ri44Wrs3JZ+E/OrrvLdpZp2WmnVkHVZIhztEEpj OlCmhEJT+W1yRoDCgfdjDn2vXlt0/xV+eZT/EW63A8C7gY/ZKzzAnhIteocyFkyTnTAS Og1gsAJRV4Gn3ZeTDiOnWwpICSag8nmaPuVKg= Received: by 10.224.19.145 with SMTP id a17mr2948721qab.208.1296237882910; Fri, 28 Jan 2011 10:04:42 -0800 (PST) Received: from Duality (65-101-250-169.hlrn.qwest.net [65.101.250.169]) by mx.google.com with ESMTPS id w12sm11690777qco.32.2011.01.28.10.04.39 (version=SSLv3 cipher=RC4-MD5); Fri, 28 Jan 2011 10:04:40 -0800 (PST) From: "mark" To: "'Robert Haas'" Cc: References: <201101270124.p0R1OIpY051049@wwwmaster.postgresql.org> In-Reply-To: Subject: Re: BUG #5851: ROHS (read only hot standby) needs to be restarted manually in somecases. Date: Fri, 28 Jan 2011 11:03:55 -0700 Message-ID: <034301cbbf15$bc078920$34169b60$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acu+8eukh0KiaIG7QlCbqqjQG0quqgAIq4lw 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/239 X-Sequence-Number: 29261 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.=20 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.=20 ..: Mark > -----Original Message----- > From: Robert Haas [mailto:robertmhaas@gmail.com] > Sent: Friday, January 28, 2011 6:48 AM > To: Mark > Cc: pgsql-bugs@postgresql.org > Subject: Re: [BUGS] BUG #5851: ROHS (read only hot standby) needs to = be > restarted manually in somecases. >=20 > On Wed, Jan 26, 2011 at 8:24 PM, Mark wrote: > > getting a break down in streaming rep. my current work around is to > restart > > the PG instance on the ROHS. doesn't seem to affect the master any. > doesn't > > require a re-rsync of the base to get replication going again. has > happened > > with 9.0.2 twice now in a month. > > > > > > > > 2011-01-26 08:35:42 MST :: (postgres@10.80.2.89) LOG: =A0could not > receive > > data > > from client: Connection reset by peer > > 2011-01-26 08:35:42 MST :: (postgres@10.80.2.89) LOG: =A0unexpected = EOF > on > > standby connection > > > > this was all I have in the master's log with the level set to debug > 1, I > > have reset it to debug 5 and will just wait till it dies again and > hopefully > > get a better idea of what is going on. nothing is being logged to = the > > standby. >=20 > Maybe a break in network connectivity is leading the master to think > that the slave is dead, while the slave still thinks it's connected. > You might need to adjust the TCP keepalive parameters the slave uses > to connect to the master. >=20 > -- > Robert Haas > EnterpriseDB: http://www.enterprisedb.com > The Enterprise PostgreSQL Company