From: Andreas Kretschmer <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Operating of synchronous master when no standby is available
Date: Mon, 2 Oct 2023 13:15:18 +0200
Message-ID: <78ff6888-006e-cdba-8d77-9d6b5678fab2@a-kretschmer.de> (raw)
In-Reply-To: <CABVQyeqYocamAL0y7eLPdYP-q96U4e-Kd+uPwro-hDgPa56y4Q@mail.gmail.com>
References: <CABVQyeqYocamAL0y7eLPdYP-q96U4e-Kd+uPwro-hDgPa56y4Q@mail.gmail.com>
Am 02.10.23 um 10:54 schrieb Sergey Cherukhin:
> Hello!
>
> I use Postgresql+Pacemaker+Corosync cluster with 2 Postgresql
> instances in synchronous replication mode. When one of the nodes is
> down, clients hang on INSERT operations because the primary server
> waits until standby confirms that itĀ got the data, but the standby
> node is down.
>
> I need clients to feel no difference when they operate with a fully
> operational cluster or with a degraded cluster containing primary
> nodeĀ alone.
>
> Is it possible to configure synchronous replication to operate
> normally when primary and replica are online, but primary no waits
> confirmation from replica if replica is not connected?
yes, with 3 or more sync. standbys.
Andreas
--
Andreas Kretschmer
Technical Account Manager (TAM)
www.enterprisedb.com
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: andreas@a-kretschmer.de
Subject: Re: Operating of synchronous master when no standby is available
In-Reply-To: <78ff6888-006e-cdba-8d77-9d6b5678fab2@a-kretschmer.de>
References: <CABVQyeqYocamAL0y7eLPdYP-q96U4e-Kd+uPwro-hDgPa56y4Q@mail.gmail.com> <78ff6888-006e-cdba-8d77-9d6b5678fab2@a-kretschmer.de>
* 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