pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Brunnengräber <pbrunnen@bccglobal.com>
To: pgsql-admin@postgresql.org
Subject: Hot_standby WAL archiving question
Date: Mon, 2 May 2016 11:53:52 -0400 (EDT)
Message-ID: <1206916146.2714.1462204427454.JavaMail.pbrunnen@Station8.local> (raw)
In-Reply-To: <1768734441.2711.1462204088868.JavaMail.pbrunnen@Station8.local>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hello all,
  So I have been working on setting up an active/standby clustered postgresql 9.2 using corosync.   The corosync documentation has me enable WAL archiving "archive_command = 'cp %p /db/data/postgresql/9.2/pg_archive/%f'"

  I assume so that the secondary can catch up in async (log shipping) mode before going into sync (streaming) mode.  But I am noticing as I push data through the DB, that my pg_archive keeps growing and I am worried about running out of disk space.

  Per the postgresql documentation, I set "wal_keep_segments" but I believe this only effects the segments in the pg_xlog and not what the archive_command is processing.

  So, since I am not keeping the archived WAL statements for long term use, is it safe to set "archive_cleanup_command = 'pg_archivecleanup /db/data/postgresql/9.2/pg_archive %r'" on the master?  Also will the archive cleanup command even have effect?  I only read about it being on slaves to clean-up what has already been processed.

Thank you!

-With kind regards,
 Peter Brunnengräber


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



view thread (4+ messages)  latest in thread

Message-ID: <1206916146.2714.1462204427454.JavaMail.pbrunnen@Station8.local>
Permalink:  ../1206916146.2714.1462204427454.JavaMail.pbrunnen@Station8.local/
Also on:    postgresql.org/message-id/1206916146.2714.1462204427454.JavaMail.pbrunnen@Station8.local

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pbrunnen@bccglobal.com
  Subject: Re: Hot_standby WAL archiving question
  In-Reply-To: <1206916146.2714.1462204427454.JavaMail.pbrunnen@Station8.local>

* 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