Re: Question about synchronous replication

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Borodin Vladimir <root(at)simply(dot)name>, pgsql-general(at)postgresql(dot)org
Subject: Re: Question about synchronous replication
Date: 2014-05-12 18:26:30
Message-ID: 53711256.6080006@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 05/12/2014 09:42 AM, Borodin Vladimir wrote:
> Hi all.
>
> Right now synchronous replication in postgresql chooses one replica as
> synchronous and waits for replies from it (with synchronous_commit = on
> | remote_write) until this replica host does not disconnect from master.
>
> Are there any plans to implement something like semi synchronous
> replication in MySQL 5.6 or replication with write_concern=2 in MongoDB
> when the master waits for a reply from any of the replica hosts?

This does not work for what you want?:

http://www.postgresql.org/docs/9.3/interactive/runtime-config-replication.html#GUC-SYNCHRONOUS-STANDBY-NAMES

>
> In this case network flaps between master and any one replica will not
> affect writing load and in case of master fail it would be necessary to
> find the most recent replica and promote it. Or there are pitfalls that
> I do not see?
>
> --
> Vladimir
>
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peeyush Agarwal 2014-05-13 02:05:03 Log Data Analytics : Confused about the choice of Database
Previous Message David G Johnston 2014-05-12 17:10:36 Re: Receiving many more rows than expected