Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQ4xx-0002g9-Dy for pgsql-general@arkaria.postgresql.org; Tue, 14 Sep 2021 09:43:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQ4xv-00025I-LV for pgsql-general@arkaria.postgresql.org; Tue, 14 Sep 2021 09:42:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQ4xv-000258-Ca for pgsql-general@lists.postgresql.org; Tue, 14 Sep 2021 09:42:59 +0000 Received: from brisi.sourcepole.ch ([5.9.57.43]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQ4xs-0004he-DV for pgsql-general@lists.postgresql.org; Tue, 14 Sep 2021 09:42:58 +0000 Received: from [213.55.224.53] (helo=[192.168.43.81]) by vilan-mail with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mQ4xo-0002w3-UG for pgsql-general@lists.postgresql.org; Tue, 14 Sep 2021 11:42:53 +0200 Subject: Re: Fastest option to transfer db? To: pgsql-general@lists.postgresql.org References: <9DD71F3B-4E46-4024-A7A6-0EDCE17F1251@alaska.edu> <13A4934D-41D6-42C5-9039-5DFF4A65D657@alaska.edu> From: Tomas Pospisek Message-ID: Date: Tue, 14 Sep 2021 11:42:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <13A4934D-41D6-42C5-9039-5DFF4A65D657@alaska.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 > > wrote: >> >> What version of Postgres is the source? Can you make use of logical >> replication? >