From: David Steele <david@pgmasters.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: pgbackrest with PAF(corosync and pacmaker)
Date: Thu, 17 Oct 2019 12:18:42 +0200
Message-ID: <a14578e2-d5c1-afdc-4f94-82278b8a2ed3@pgmasters.net> (raw)
In-Reply-To: <CABi=8qw8t4T2Gy0E6o34h=mkyQcQ-utZdQ=V+GwrGq6i7Bd=-w@mail.gmail.com>
References: <CABi=8qw8t4T2Gy0E6o34h=mkyQcQ-utZdQ=V+GwrGq6i7Bd=-w@mail.gmail.com>
On 10/17/19 9:48 AM, Ajay Pratap wrote:
>
> I am using pacemaker and corosync to setup two nodes High availability
> cluster for postgreSQL 10. In the scenario I want to setup timely backup
> with pgbackrest.
> Using the _backup from standby_ feature I could able to take backup from
> my secondary postgres. But if secondary postgres is down, it does not
> take backup from primary.
This is entirely on purpose. Backup from standby is designed to reduce
load on the primary so we believe it is counter-intuitive to put load
back on the primary when the standby is down. Running backups *at all*
when degraded is usually a bad idea.
> Is there any way to achieve this?
You can run more than one standby and pgBackRest will automatically
select the first one it finds that is up. If you must take a backup
when degraded then you can specify --no-backup-standby on the command
line to disable standby for that one backup.
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
Subject: Re: pgbackrest with PAF(corosync and pacmaker)
In-Reply-To: <a14578e2-d5c1-afdc-4f94-82278b8a2ed3@pgmasters.net>
References: <CABi=8qw8t4T2Gy0E6o34h=mkyQcQ-utZdQ=V+GwrGq6i7Bd=-w@mail.gmail.com> <a14578e2-d5c1-afdc-4f94-82278b8a2ed3@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