Re: Sync replication

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Azimuddin Mohammed <azimeiu(at)gmail(dot)com>, Rakesh Kumar <rakeshkumar464(at)aol(dot)com>, pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Sync replication
Date: 2018-01-26 01:46:48
Message-ID: 20180126014648.GC2416@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Greetings Michael,

* Michael Paquier (michael(dot)paquier(at)gmail(dot)com) wrote:
> On Thu, Jan 25, 2018 at 08:21:43PM -0500, Stephen Frost wrote:
> > That's correct, which is why it's encouraged to have multiple replicas
> > configured when using synchronous replication. In v10, it's possible to
> > specify how many synchronous replicas are required to have acknowledged
> > a given transaction before a COMMIT is returned to the applicaiton.
> > Please review the documentation here:
> >
> > https://www.postgresql.org/docs/current/static/warm-standby.html#SYNCHRONOUS-REPLICATION
>
> Be careful about the performance impact if there is network latency
> between a primary and its standbys. One small correction to what Stephen
> says here. It is possible to define multiple synchronous standbys in
> v9.6. v10 has added the possibility to define quorum groups. Note that
> the grammar as been kept backward-compatible across versions.

Ah, yeah, I was thinking of quorum groups when writing that but you're
right that 9.6 added support for multiple synchronous standbys. Older
versions also supported having multiple synchronous standbys configured
but were hard-wired to accept the commit with just one of them
acknowledging it (in a priorty order based on the order of them as
defined in synchronous_standby_names).

Thanks for the clarification!

Stephen

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ray Stell 2018-01-26 02:51:36 Re: OOM Killing on Docker while ANALYZE running
Previous Message Michael Paquier 2018-01-26 01:37:38 Re: Sync replication

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2018-01-26 02:44:53 Re: [PATCH] Logical decoding of TRUNCATE
Previous Message Robert Haas 2018-01-26 01:40:27 Re: [PATCH] Logical decoding of TRUNCATE