From: John R Pierce <pierce@hogranch.com>
To: pgsql-general@postgresql.org
Subject: Re: Setting up replication slave on remote high latency host
Date: Wed, 15 Nov 2017 18:30:55 -0800
Message-ID: <7699ace1-4f75-6b0d-c733-f884d90b6771@hogranch.com> (raw)
In-Reply-To: <CANP_6+MUnqaSNA+85aM8g+ZXefomoAzpS_pZQMypTwS_t9c9ag@mail.gmail.com>
References: <CANP_6+MUnqaSNA+85aM8g+ZXefomoAzpS_pZQMypTwS_t9c9ag@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On 11/15/2017 6:02 PM, Rory Falloon wrote:
>
> Right now I am trying to dump the database, gzip, move across, and
> import into the new slave (which is configured as a master to perform
> the initial setup). Ideally I do this dump, move and import during a
> period of inactivity on the master so the new server will come up and
> immediately be able to catch up on replication due to lack of
> activity. However, I have been importing the current db as a test and
> after 90 minutes it seems to have only got 2/3 of the way. I am not
> confident this will work but it seems like the most efficient way to
> start.
you can't use pg_dump to create a slave, as it won't have the same timeline.
I would use pg_basebackup, but in general streaming replication over a
high latency erratic link will never work real well.
--
john r pierce, recycling bits in santa cruz
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
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-general@postgresql.org
Cc: pierce@hogranch.com
Subject: Re: Setting up replication slave on remote high latency host
In-Reply-To: <7699ace1-4f75-6b0d-c733-f884d90b6771@hogranch.com>
References: <CANP_6+MUnqaSNA+85aM8g+ZXefomoAzpS_pZQMypTwS_t9c9ag@mail.gmail.com> <7699ace1-4f75-6b0d-c733-f884d90b6771@hogranch.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