From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: PG Admin <pgsql-admin@postgresql.org>
To: A J <s5aly@yahoo.com>
Subject: Re: Cleanup of same archive used by multiple standbys
Date: Wed, 10 Aug 2011 12:00:07 -0500
Message-ID: <4E4272C7020000250003FD48@gw.wicourts.gov> (raw)
In-Reply-To: <1312995184.42492.YahooMailNeo@web120019.mail.ne1.yahoo.com>
References: <1312994485.73719.YahooMailNeo@web120017.mail.ne1.yahoo.com>
<1312995184.42492.YahooMailNeo@web120019.mail.ne1.yahoo.com>
A J <s5aly@yahoo.com> wrote:
> Also couple of additional related question:
> 2. Am I correct in my assumption that if for some reason archive
> is not cleaned up and runs out of space, the WALs will accumulate
> in pg_xlog directory on the primary. If pg_xlog was to then run
> out of space, Primary server will stop accepting new writes and
> fail ?
That sounds correct to me. I've never seen it in practice, though;
we would need to ignore alerts from our monitoring for quite some
time before it got to that point.
> 3. If my standbys are in different datacenter, what is the
> suggested location of the archive directory ? Is it recommended to
> have it local in the data center of the primary server or somehow
> have it over in the remote data center.
In our shop we have found it advantageous to immediately write it
locally, and then use rsync (through ssh and a daemon) to bring the
remote site(s) into sync.
-Kevin
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-admin@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, s5aly@yahoo.com
Subject: Re: Cleanup of same archive used by multiple standbys
In-Reply-To: <4E4272C7020000250003FD48@gw.wicourts.gov>
References: <1312994485.73719.YahooMailNeo@web120017.mail.ne1.yahoo.com> <1312995184.42492.YahooMailNeo@web120019.mail.ne1.yahoo.com> <4E4272C7020000250003FD48@gw.wicourts.gov>
* 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