pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: Evan Bauer <evanbauer@mac.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: More efficient pg_restore method?
Date: Tue, 28 Aug 2018 12:00:24 -0500
Message-ID: <f6ef298d-fe2f-384d-6be7-0215c579bc42@gmail.com> (raw)
In-Reply-To: <1F9927D1-5C55-48B9-8C6D-ECE3F6BDA3ED@mac.com>
References: <44555188-c787-b441-5c69-c56f72905bf4@gmail.com>
	<1F9927D1-5C55-48B9-8C6D-ECE3F6BDA3ED@mac.com>

On 08/28/2018 11:57 AM, Evan Bauer wrote:
> Ron,
>
> A couple of starting questions:
>
>  1. What is the size and latency of the network pipe between the primary
>     and backup servers?
>

10Gb WAN.  Don't know the latency.

>  1. What is the size of the database you need to restore?
>

6.5TB dump directory, 3.0TB data/base directory.

>  1. Is there a reason not to do a network copy of the backup directory
>     contents to the database server and run the pg_restore locally?
>

Option #3!!!  I'll research that.

>
> Cheers,
>
> - Evan
>
> Evan Bauer
> eb@evanbauer.com <mailto:eb@evanbauer.com>
> +1 646 641 2973
> Skype: evanbauer
>
>
>> On Aug 28, 2018, at 12:48, Ron <ronljohnsonjr@gmail.com 
>> <mailto:ronljohnsonjr@gmail.com>> wrote:
>>
>>
>> Pg 9.6.9 on Linux...
>>
>> Given a backup server storing a "format=directory" database backup, and a 
>> database server, should I:
>>
>> Option #1: run pg_restore on the backup server and "push" the data to the 
>> database server via port 5432, or
>> Option #2: have the backup server serve the dump directory via NFS, and 
>> run pg_restore on the database server, pulling the data via nfs protocol?
>>
>> (It'll be a multi-threaded restore over a 10Gb pipe.)
>>
>> -- 
>> Angular momentum makes the world go 'round.
>>
>

-- 
Angular momentum makes the world go 'round.

view thread (5+ messages)  latest in thread

Message-ID: <f6ef298d-fe2f-384d-6be7-0215c579bc42@gmail.com>
Permalink:  ../f6ef298d-fe2f-384d-6be7-0215c579bc42@gmail.com/
Also on:    postgresql.org/message-id/f6ef298d-fe2f-384d-6be7-0215c579bc42@gmail.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: ronljohnsonjr@gmail.com, evanbauer@mac.com, pgsql-admin@lists.postgresql.org
  Subject: Re: More efficient pg_restore method?
  In-Reply-To: <f6ef298d-fe2f-384d-6be7-0215c579bc42@gmail.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