From: Jeff Frost <jeff@pgexperts.com>
To: Christoph Berg <cb@df7cb.de>
Cc: Xavier 12 <maniatux@gmail.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: [GENERAL] pg_xlog on a hot_standby slave filling up
Date: Wed, 17 Jun 2015 08:39:33 -0700
Message-ID: <AF73F62A-B83A-41A3-9CAA-CCFFDC4DB204@pgexperts.com> (raw)
In-Reply-To: <20150617102211.GA17481@msg.df7cb.de>
References: <CAMOV8iB3oRzC4f7UTzOwC2wT08do3voi+PGN07uJq+ayo9E=cQ@mail.gmail.com>
<20150616183556.GA9823@msg.df7cb.de>
<67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com>
<20150617102211.GA17481@msg.df7cb.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Sent from my iPhone
> On Jun 17, 2015, at 03:22, Christoph Berg <cb@df7cb.de> wrote:
>
> Re: Jeff Frost 2015-06-16 <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com>
>
> Yes, SSL, with default settings. I can confirm your
> wal-file-from-before analysis:
>
> 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 000000010000003300000040, 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
>
> -rw------- 1 postgres postgres 16777216 Jun 16 09:14 00000001000000330000003F
>
> 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 000000010000003300000060, 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
>
> -rw------- 1 postgres postgres 16777216 Jun 16 19:55 00000001000000330000005F
>
> 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 unexpectedly
> Jun 17 04:35:02 synthesis postgres[24337]: [4-2] This probably means 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 000000010000003300000080, offset 0
> Jun 17 04:35:05 synthesis postgres[4756]: [5-1] 2015-06-17 04:35:05 GMT LOG: started streaming WAL from primary at 33/80000000 on timeline 1
>
> -rw------- 1 postgres postgres 16777216 Jun 17 06:35 00000001000000330000007F
>
> There's a 1:1 correspondence with log and leaked files.
We thought it was related to the ssl renegotiation limit, but reducing it didn't seem to make it happen more often.
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.
I believe setting the ssl renegotiation limit to 0 made it stop. Can you confirm?
Have you been able to reproduce synthetically?
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: jeff@pgexperts.com, cb@df7cb.de, maniatux@gmail.com
Subject: Re: [GENERAL] pg_xlog on a hot_standby slave filling up
In-Reply-To: <AF73F62A-B83A-41A3-9CAA-CCFFDC4DB204@pgexperts.com>
References: <CAMOV8iB3oRzC4f7UTzOwC2wT08do3voi+PGN07uJq+ayo9E=cQ@mail.gmail.com> <20150616183556.GA9823@msg.df7cb.de> <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com> <20150617102211.GA17481@msg.df7cb.de> <AF73F62A-B83A-41A3-9CAA-CCFFDC4DB204@pgexperts.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