pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Tue, 16 Jun 2015 13:16:22 -0700
Message-ID: <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com> (raw)
In-Reply-To: <20150616183556.GA9823@msg.df7cb.de>
References: <CAMOV8iB3oRzC4f7UTzOwC2wT08do3voi+PGN07uJq+ayo9E=cQ@mail.gmail.com>
	<20150616183556.GA9823@msg.df7cb.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>


> On Jun 16, 2015, at 11:35 AM, Christoph Berg <cb@df7cb.de> wrote:
> 
> [moving to -bugs]
> 
> Re: Xavier 12 2015-06-16 <CAMOV8iB3oRzC4f7UTzOwC2wT08do3voi+PGN07uJq+ayo9E=cQ@mail.gmail.com>
>> Hi everyone,
>> 
>> Questions about pg_xlogs again...
>> I have two Postgresql 9.1 servers in a master/slave stream replication
>> (hot_standby).
>> 
>> Psql01 (master) is backuped with Barman and pg_xlogs is correctly
>> purged (archive_command is used).
>> 
>> Hower, Psql02 (slave) has a huge pg_xlog (951 files, 15G for 7 days
>> only, it keeps growing up until disk space is full). I have found
>> documentation and tutorials, mailing list, but I don't know what is
>> suitable for a Slave. Leads I've found :
> 
> Hi,
> 
> I have the same problem here. Master/slave running on 9.3.current. On
> the master everything is normal, but on the slave server, files in
> pg_xlog and archive_status pile up. Interestingly, the filenames are
> mostly 0x20 apart. (IRC user Kassandry is reporting the same issue on
> 9.4 as well, including the 0x20 spacing.)

I’ve seen this before, but haven’t been able to make a reproducible test case yet.

Are you by chance using SSL to talk to the primary server?  Is the ssl_renegotiation_limit the default of 512MB?  32 WAL files at 16MB each = 512MB.  I found that it would always leave the WAL file from before the invalid record length message.  Does that seem to be the case for you as well?



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (8+ messages)  latest in thread

Message-ID: <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com>
Permalink:  ../67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com/
Also on:    postgresql.org/message-id/67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com

 · 

reply

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: <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com>
  References: <CAMOV8iB3oRzC4f7UTzOwC2wT08do3voi+PGN07uJq+ayo9E=cQ@mail.gmail.com> <20150616183556.GA9823@msg.df7cb.de> <67E2F20A-6A2E-484E-BF97-544F1FC66566@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