pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: John Scalia <jayknowsunix@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: WAL archiving to 2 standby servers
Date: Wed, 2 Jul 2014 12:13:28 -0700
Message-ID: <1404328408.71750.YahooMailNeo@web122305.mail.ne1.yahoo.com> (raw)
In-Reply-To: <53B44151.4030200@gmail.com>
References: <53B44151.4030200@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

John Scalia <jayknowsunix@gmail.com> wrote:

> I'm wondering as I've never seen anyone doing this if I can/should setup
> WAL archiving from the primary server to 2 different standby servers. These
> machines are configured to be
> streaming replication and I've got the archive command on the primary doing
> an scp to both standbys, but for some reason the second one isn't getting
> anything. What the
> archive_command looks like is "scp %p user@standby1:/<dir>/%f; scp %p
> user@standby2:<dir>/%f". That's not wokring correctly, but
> I'm wondering if it's even necessary for the 2nd
> standby?

What I have done in a situation like this is to have the archive
command copy to a directory on the database server machine, and use
rsync to make copies on all targets.  If you try to have the
archive command deal with both standby machines directly, it gets
pretty complicated trying to handle the failure of one of those
standby machines, or of the network connecting to one of them.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
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 (3+ messages)

Message-ID: <1404328408.71750.YahooMailNeo@web122305.mail.ne1.yahoo.com>
Permalink:  ../1404328408.71750.YahooMailNeo@web122305.mail.ne1.yahoo.com/
Also on:    postgresql.org/message-id/1404328408.71750.YahooMailNeo@web122305.mail.ne1.yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: kgrittn@ymail.com, jayknowsunix@gmail.com
  Subject: Re: WAL archiving to 2 standby servers
  In-Reply-To: <1404328408.71750.YahooMailNeo@web122305.mail.ne1.yahoo.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