Re: initial sync of multiple streaming slaves simultaneously

From: Lonni J Friedman <netllama(at)gmail(dot)com>
To: Mike Roest <mike(dot)roest(at)replicon(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: initial sync of multiple streaming slaves simultaneously
Date: 2012-09-19 16:03:09
Message-ID: CAP=oouHx_3DB6Cwe+BD=4kWQ+0X-_DnNj9WM+Z5zUD+yrRDFdw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Sep 19, 2012 at 8:59 AM, Mike Roest <mike(dot)roest(at)replicon(dot)com> wrote:
> Hey Everyone,
> We currently have a 9.1.5 postgres cluster running using streaming
> replication. We have 3 nodes right now
>
> 2 - local that are setup with pacemaker for a HA master/slave set failover
> cluster
> 1 - remote as a DR.
>
> Currently we're syncing with the pretty standard routine
>
> clear local datadir
> pg_start_backup
> sync datadir with fast-archiver (https://github.com/replicon/fast-archiver)
> pg_stop_backup
> start slave
>
> We use the streaming replication with wal_keep_segments set to 1000 to get
> the required WAL files to the slaves.
>
> With this procedure we can currently only sync one of the slaves at a time
> if we failover. As when the second machine goes to start the sync it errors
> out cause trying to run pg_start_backup fails.

Specifically what is the error?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Roest 2012-09-19 16:05:02 Re: initial sync of multiple streaming slaves simultaneously
Previous Message Mike Roest 2012-09-19 15:59:07 initial sync of multiple streaming slaves simultaneously