Re: Operating of synchronous master when no standby is available

Поиск
Список
Период
Сортировка
От Sergey Cherukhin
Тема Re: Operating of synchronous master when no standby is available
Дата
Msg-id CABVQyerM91C60WhFjJZOW7-FchxHWpL9==YFQ3HOs_=RgtLPHA@mail.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
Список pgsql-general
I already have rep_mode set to "sync", but the primary node switches to async mode only if the replica is shutted down correctly. When I shut down the replica by powering it off to emulate power unit failure, primary remains in sync mode until "pcs resource cleanup" is performed. I think it is possible to run resource cleanup in script on cluster alert.

вт, 3 окт. 2023 г. в 05:13, MATSUO Takatoshi <matsuo.tak@gmail.com>:
Pgsql RA  has rep_mode=sync parameter.
2023年10月2日(月) 23:48 Sergey Cherukhin <sergey.cherukhin@gmail.com>:
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 по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: pg_stat_statements IN problem
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: pg_stat_statements IN problem