From: Bruce Momjian <bruce@momjian.us>
To: David Gauthier <davegauthierpg@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Can PAF be used to provide zero downtime while primary and backup servers are being patched?
Date: Thu, 6 Aug 2020 18:18:59 -0400
Message-ID: <20200806221859.GA23564@momjian.us> (raw)
In-Reply-To: <CAMBRECAWf8z-3Na+ucR1EsAPWYCrUU4K_-u73_BbAV7YSbeGJA@mail.gmail.com>
References: <CAMBRECAWf8z-3Na+ucR1EsAPWYCrUU4K_-u73_BbAV7YSbeGJA@mail.gmail.com>
On Thu, Aug 6, 2020 at 10:01:21AM -0400, David Gauthier wrote:
> Our IT dept needs to install a patch on both primary and backup servers for our
> Postgres Automatic Failover configured DB (version 9.6 on linux). From the
> standpoint of the DB users, can a strategy be implemented such that they see
> zero downtime during this process as the 2 servers are taken down in sequence
> for their patch, switching the role of primary and backup as this happens ?
Assuming this is a minor relase upgrade, you can do it by just bouncing
the servers. You can do the switch-over/switch-back too, but you have
to manage session migration. I wrote a blog about it:
https://momjian.us/main/blogs/pgblog/2018.html#October_1_2018
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
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: bruce@momjian.us, davegauthierpg@gmail.com
Subject: Re: Can PAF be used to provide zero downtime while primary and backup servers are being patched?
In-Reply-To: <20200806221859.GA23564@momjian.us>
References: <CAMBRECAWf8z-3Na+ucR1EsAPWYCrUU4K_-u73_BbAV7YSbeGJA@mail.gmail.com> <20200806221859.GA23564@momjian.us>
* 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