public inbox for [email protected]
help / color / mirror / Atom feedFrom: Michael Paquier <[email protected]>
To: Albe Laurenz <[email protected]>
Cc: Kaushal Shriyan <[email protected]>
Cc: Torsten Förtsch *EXTERN* <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: PG replication across DataCenters
Date: Sat, 23 Nov 2013 17:09:04 +0900
Message-ID: <CAB7nPqQWWfrSvDZ+0meY0jpS9XmeH4uiaXPw7zgoPag0tbnpig@mail.gmail.com> (raw)
In-Reply-To: <A737B7A37273E048B164557ADEF4A58B17C5EEB7@ntex2010i.host.magwien.gv.at>
References: <CAD7Ssm9S__ZQCOq2GEN0G0rrs_4U6aqXiLaX0hh0Ts8JH_LY2w@mail.gmail.com>
<A737B7A37273E048B164557ADEF4A58B17C5ED75@ntex2010i.host.magwien.gv.at>
<[email protected]>
<A737B7A37273E048B164557ADEF4A58B17C5EDDF@ntex2010i.host.magwien.gv.at>
<CAD7Ssm-JLz1nM1zd_dgVGWWMB+Bq=3QCWWigaZV7xu+_mQ_qWQ@mail.gmail.com>
<CAB7nPqSrkSy2BsdyxUXr=pY6=RetfQsEgPCRjOHJMTfFXU3Tfw@mail.gmail.com>
<A737B7A37273E048B164557ADEF4A58B17C5EEB7@ntex2010i.host.magwien.gv.at>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-general>
On Fri, Nov 22, 2013 at 11:46 PM, Albe Laurenz <[email protected]> wrote:
> Michael Paquier wrote:
>> On Fri, Nov 22, 2013 at 10:03 PM, Kaushal Shriyan <[email protected]> wrote:
>>> I am not sure i understand the difference between async and sync replication
>>> and on what scenarios i should use async or sync replication. Does it mean
>>> if it is within same DC then sync replication is the best and if it is
>>> across DC replication async is better than sync. Please help me understand.
>
>> In the case of synchronous replication, master node waits for the
>> confirmation that a given transaction has committed on slave side
>> before committing itself. This wait period can cause some delay, hence
>> it is preferable to use sync replication with nodes that far from each
>> other.
>
> I am sure that you wanted to say
> "with nodes *not* that far from each other".
Oops sorry for the typo. Yes I meant of course "not that far".
--
Michael
--
Sent via pgsql-general mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
view thread (36+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: PG replication across DataCenters
In-Reply-To: <CAB7nPqQWWfrSvDZ+0meY0jpS9XmeH4uiaXPw7zgoPag0tbnpig@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox