Re: quorum commit Re: Synchronous replication

Поиск
Список
Период
Сортировка
От Yeb Havinga
Тема Re: quorum commit Re: Synchronous replication
Дата
Msg-id 4C4D5607.4020708@gmail.com
обсуждение исходный текст
Ответ на quorum commit Re: Synchronous replication  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
Fujii Masao wrote:
> In the following case, how should quorum commit behave?
>
> 1. quorum_standbys = 2; there are three connected synchronous standbys
> 2. One standby sends the ACK back and fails
> 3. The ACK arrives from another standby
> 4. How should quorum commit behave?
>
> (a) Transaction commit returns a "success" since the master has already
>     received two ACKs
> (b) Transaction commit waits for the "last" ACK since only one of
>     currently connected standbys has sent the ACK
>   
I'd opt for option (b) if that doesn't make the code very complex, or 
expensive (to check connected state when reaching quorum).

regards,
Yeb Havinga



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: quorum commit Re: Synchronous replication
Следующее
От: Yeb Havinga
Дата:
Сообщение: Re: Synchronous replication