Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5Fdk-0006mf-3y for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Jun 2015 15:52:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z5Fdj-0005LE-KE for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Jun 2015 15:52:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z5Fdi-0005JN-JT for pgsql-bugs@postgresql.org; Wed, 17 Jun 2015 15:52:34 +0000 Received: from smtp114.ord1c.emailsrvr.com ([108.166.43.114]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z5Fdf-00030o-Pb for pgsql-bugs@postgresql.org; Wed, 17 Jun 2015 15:52:33 +0000 Received: from smtp7.relay.ord1c.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp7.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 25F3B3813A9; Wed, 17 Jun 2015 11:52:28 -0400 (EDT) Received: by smtp7.relay.ord1c.emailsrvr.com (Authenticated sender: jeff.frost-AT-pgexperts.com) with ESMTPSA id A2479380B92; Wed, 17 Jun 2015 11:39:35 -0400 (EDT) X-Sender-Id: jeff.frost@pgexperts.com Received: from [10.168.143.85] ([UNAVAILABLE]. [166.170.40.63]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:587 (trex/5.4.2); Wed, 17 Jun 2015 15:39:40 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [GENERAL] pg_xlog on a hot_standby slave filling up From: Jeff Frost X-Mailer: iPhone Mail (12F70) In-Reply-To: <20150617102211.GA17481@msg.df7cb.de> Date: Wed, 17 Jun 2015 08:39:33 -0700 Cc: Xavier 12 , PostgreSQL Bugs Content-Transfer-Encoding: quoted-printable Message-Id: References: <20150616183556.GA9823@msg.df7cb.de> <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com> <20150617102211.GA17481@msg.df7cb.de> To: Christoph Berg X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Sent from my iPhone > On Jun 17, 2015, at 03:22, Christoph Berg wrote: >=20 > Re: Jeff Frost 2015-06-16 <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts= .com> >=20 > Yes, SSL, with default settings. I can confirm your > wal-file-from-before analysis: >=20 > Jun 16 07:14:59 synthesis postgres[32525]: [8-1] 2015-06-16 07:14:59 GMT = LOG: unexpected pageaddr 33/39000000 in log segment 0000000100000033000000= 40, offset 0 > Jun 16 07:15:00 synthesis postgres[11514]: [3-1] 2015-06-16 07:15:00 GMT = LOG: started streaming WAL from primary at 33/40000000 on timeline 1 >=20 > -rw------- 1 postgres postgres 16777216 Jun 16 09:14 0000000100000033000= 0003F >=20 > Jun 16 17:55:01 synthesis postgres[32525]: [9-1] 2015-06-16 17:55:01 GMT = LOG: unexpected pageaddr 33/5A000000 in log segment 0000000100000033000000= 60, offset 0 > Jun 16 17:55:02 synthesis postgres[24337]: [3-1] 2015-06-16 17:55:02 GMT = LOG: started streaming WAL from primary at 33/60000000 on timeline 1 >=20 > -rw------- 1 postgres postgres 16777216 Jun 16 19:55 0000000100000033000= 0005F >=20 > Jun 17 04:35:02 synthesis postgres[24337]: [4-1] 2015-06-17 04:35:02 GMT = FATAL: could not send data to WAL stream: server closed the connection une= xpectedly > Jun 17 04:35:02 synthesis postgres[24337]: [4-2] This probably me= ans the server terminated abnormally > Jun 17 04:35:02 synthesis postgres[24337]: [4-3] before or while = processing the request. > Jun 17 04:35:02 synthesis postgres[24337]: [4-4] > Jun 17 04:35:04 synthesis postgres[32525]: [10-1] 2015-06-17 04:35:04 GMT= LOG: unexpected pageaddr 33/7B000000 in log segment 000000010000003300000= 080, offset 0 > Jun 17 04:35:05 synthesis postgres[4756]: [5-1] 2015-06-17 04:35:05 GMT L= OG: started streaming WAL from primary at 33/80000000 on timeline 1 >=20 > -rw------- 1 postgres postgres 16777216 Jun 17 06:35 0000000100000033000= 0007F >=20 > There's a 1:1 correspondence with log and leaked files. We thought it was related to the ssl renegotiation limit, but reducing it d= idn't seem to make it happen more often.=20 The problem was that I couldn't seem to make a reproducible test case with = pgbench and two servers, so it seems there is slightly more at play.=20 I believe setting the ssl renegotiation limit to 0 made it stop. Can you co= nfirm? Have you been able to reproduce synthetically? --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs