Re: Quorum commit for multiple synchronous replication.

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Sawada Masahiko <sawada(dot)mshk(at)gmail(dot)com>, Noah Misch <noah(at)leadboat(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Petr Jelinek <petr(at)2ndquadrant(dot)com>, Vik Fearing <vik(at)2ndquadrant(dot)fr>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Quorum commit for multiple synchronous replication.
Date: 2017-04-25 11:07:58
Message-ID: CAA4eK1+TPiObvxMeRmzqivUbLKhCdhdpzw_yTSXWD2qwW9Nx-A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Apr 25, 2017 at 2:09 PM, Kyotaro HORIGUCHI
<horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp> wrote:
>
> I'm not good at composition, so I cannot insist on my
> proposal. For the convenience of others, here is the proposal
> from Fujii-san.
>

Do you see any problem with the below proposal? To me, this sounds reasonable.

> + A quorum-based synchronous replication is basically more efficient than
> + a priority-based one when you specify multiple standbys in
> + <varname>synchronous_standby_names</> and want to replicate
> + the transactions to some of them synchronously. In this case,
> + the transactions in a priority-based synchronous replication must wait for
> + reply from the slowest standby in synchronous standbys chosen based on
> + their priorities, and which may increase the transaction latencies.
> + On the other hand, using a quorum-based synchronous replication may
> + improve those latencies because it makes the transactions wait only for
> + replies from the requested number of faster standbys in all the listed
> + standbys, i.e., such slow standby doesn't block the transactions.
>

Can we do few modifications like:
improve those latencies --> reduce those latencies
such slow standby --> a slow standby

--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2017-04-25 11:22:04 Re: Partition-wise join for join between (declaratively) partitioned tables
Previous Message 高增琦 2017-04-25 11:07:40 Re: Dropping a partitioned table takes too long