Re: Is Synchronous Postgresql Replication Slower Than Asynchronous?

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Stuart Bishop <stuart(at)stuartbishop(dot)net>
Cc: Jerry Richards <jerry(dot)richards(at)teotech(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is Synchronous Postgresql Replication Slower Than Asynchronous?
Date: 2012-01-23 15:29:01
Message-ID: CA+U5nMLRUtGE82fUKjhuQVtP44VJd7Wc2xOiEyNqL9Nzs5bPoA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 23, 2012 at 3:13 PM, Stuart Bishop <stuart(at)stuartbishop(dot)net> wrote:
> On Mon, Jan 23, 2012 at 9:37 PM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
>> On Mon, Jan 23, 2012 at 2:30 PM, Stuart Bishop <stuart(at)stuartbishop(dot)net> wrote:
>>> On Sat, Jan 21, 2012 at 3:31 AM, Jerry Richards
>>> <jerry(dot)richards(at)teotech(dot)com> wrote:
>>>> Is synchronous postgresql replication slower than asynchronous?  If so, how
>>>> much?  I am looking into database replication for a phone system, so the
>>>> response time is of concern.
>>>
>>> You might want to investigate pgpool-ii. It sits as a proxy between
>>> the client and the databases, and as queries are executed
>>> simultaneously, a synchronous replication setup should be just as fast
>>> as an unreplicated setup.
>>
>> Can you share your actual results on that?
>
> No. This is based on my assumptions from the design, not from actual
> tests. I'm currently asynchronously replicated with Slony-I and
> looking at PG 9.1 builtin replication for our simpler clusters.

Sync rep 9.1 allows you to have >2 servers involved, which is really
necessary for availability and robustness.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sim Zacks 2012-01-23 15:32:35 Re: update with from
Previous Message Sim Zacks 2012-01-23 15:21:24 Re: update with from