From: David Steele <david@pgmasters.net>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: pgbackrest - question about restoring cluster to a new cluster on same server
Date: Wed, 18 Sep 2019 21:31:07 -0400
Message-ID: <d4cbb3f6-80ac-ee8c-a0a0-78a54a7b27ae@pgmasters.net> (raw)
In-Reply-To: <0c037137-9480-3afa-a4b7-1400a9879cd2@gmail.com>
References: <0c037137-9480-3afa-a4b7-1400a9879cd2@gmail.com>
On 9/18/19 6:59 PM, Ron wrote:
>
> Scenario: there's data corruption on production server, so we need to do
> a PITR restore from "a few days ago" of the cluster holding the prod
> databases to a second cluster on that same VM in order to try and find
> the missing data and load it back into the prod cluster.
>
> Other than putting a high I/O load on the LUN where repo-path is located
> (from both writing WALs to it and reading the backed up files), will
> there be any problems when "pg_ctl start" processes recovery.conf and
> applies the WAL files to the new cluster while the prod cluster is
> writing new WAL files.
>
> Does my question make sense?
It does, but the answer lies outside of pgBackRest. "Can the repo
storage handle the load of archive-push and archive-get at the same
time" is really a question of storage and network throughput.
pgBackRest compresses everything by default which goes a long way
towards increasing throughput, but ultimately we don't control the
bandwidth.
Having said that, if the storage and network throughput are sufficient,
restoring and recovering a standby using pgBackRest will not impact the
primary as a direct pg_basebackup will.
Regards,
--
-David
david@pgmasters.net
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: david@pgmasters.net, ronljohnsonjr@gmail.com
Subject: Re: pgbackrest - question about restoring cluster to a new cluster on same server
In-Reply-To: <d4cbb3f6-80ac-ee8c-a0a0-78a54a7b27ae@pgmasters.net>
References: <0c037137-9480-3afa-a4b7-1400a9879cd2@gmail.com> <d4cbb3f6-80ac-ee8c-a0a0-78a54a7b27ae@pgmasters.net>
* 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