Operating of synchronous master when no standby is available - Mailing list pgsql-general

From Sergey Cherukhin
Subject Operating of synchronous master when no standby is available
Date
Msg-id CABVQyeqYocamAL0y7eLPdYP-q96U4e-Kd+uPwro-hDgPa56y4Q@mail.gmail.com
Whole thread Raw
Responses Re: Operating of synchronous master when no standby is available  (Ron <ronljohnsonjr@gmail.com>)
Re: Operating of synchronous master when no standby is available  (MATSUO Takatoshi <matsuo.tak@gmail.com>)
Re: Operating of synchronous master when no standby is available  (Andreas Kretschmer <andreas@a-kretschmer.de>)
List pgsql-general
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?

Best regards,
Sergey Cherukhin

pgsql-general by date:

Previous
From: Giovanni Biscontini
Date:
Subject: Re: pg_agent jobs
Next
From: Andreas Kretschmer
Date:
Subject: Re: Operating of synchronous master when no standby is available