From: Tomas Pospisek <tpo2@sourcepole.ch>
To: pgsql-general@lists.postgresql.org
Subject: Re: Fastest option to transfer db?
Date: Tue, 14 Sep 2021 11:42:46 +0200
Message-ID: <c9bb59a6-5b56-8b15-236e-91f1e5ab5220@sourcepole.ch> (raw)
In-Reply-To: <13A4934D-41D6-42C5-9039-5DFF4A65D657@alaska.edu>
References: <9DD71F3B-4E46-4024-A7A6-0EDCE17F1251@alaska.edu>
<CAHOFxGqQvNh8riqnGd-M+Aov_1_7F0WbpU66nYtN7vGoQHbgDg@mail.gmail.com>
<13A4934D-41D6-42C5-9039-5DFF4A65D657@alaska.edu>
I'm potentiall facing the same problem and would be interested in the
solution. Is there any particular howto you followed?
Also at some point I'd like to cut of the link between the two DBs
promote the copy to be the master and delete the original DB. Have you
figured out the correct step for the cut-over to happen?
*t
On 13.09.21 23:10, Israel Brewster wrote:
> Ok, I have logical replication up-and-running (I guess - seemed to
> simple to be working. Shouldn’t it be complicated, requiring many steps
> and configuration changes?), maxing out one CPU core on each machine
> (more or less), and showing network throughput of around 15M. If DU
> changes are to be believed, it’s transferring data at about
> 0.8GB/minute, implying something like a 8 hour transfer time.
>
> Of course, since it is replication, it has the benefit that any data
> that comes in during that 8 hour window should also be replicated, after
> which the two systems should remain in sync allowing for zero (or nearly
> so) downtime cutover. Which is nice.
>
> Any gotchas I need to be aware of during this initial transfer window,
> such as WAL files building up on the source machine?
>
> ---
> Israel Brewster
> Software Engineer
> Alaska Volcano Observatory
> Geophysical Institute - UAF
> 2156 Koyukuk Drive
> Fairbanks AK 99775-7320
> Work: 907-474-5172
> cell: 907-328-9145
>
>> On Sep 13, 2021, at 10:10 AM, Michael Lewis <mlewis@entrata.com
>> <mailto:mlewis@entrata.com>> wrote:
>>
>> What version of Postgres is the source? Can you make use of logical
>> replication?
>
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: tpo2@sourcepole.ch
Subject: Re: Fastest option to transfer db?
In-Reply-To: <c9bb59a6-5b56-8b15-236e-91f1e5ab5220@sourcepole.ch>
References: <9DD71F3B-4E46-4024-A7A6-0EDCE17F1251@alaska.edu> <CAHOFxGqQvNh8riqnGd-M+Aov_1_7F0WbpU66nYtN7vGoQHbgDg@mail.gmail.com> <13A4934D-41D6-42C5-9039-5DFF4A65D657@alaska.edu> <c9bb59a6-5b56-8b15-236e-91f1e5ab5220@sourcepole.ch>
* 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