From: MauMau <maumau307@gmail.com>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Could synchronous streaming replication really degrade the performance of the primary?
Date: Thu, 10 May 2012 07:34:04 +0900
Message-ID: <E7D1C27BDA0541B48AAA48ED4C0B94B5@maumau> (raw)
In-Reply-To: <CAHyXU0w4vxULonSa+bJgALDK6gYHyvXcGj-VaZNE717ttkfXoA@mail.gmail.com>
References: <61B94EF1D7774715BC565DD84C731BDD@maumau>
<CAHyXU0w4vxULonSa+bJgALDK6gYHyvXcGj-VaZNE717ttkfXoA@mail.gmail.com>
From: "Merlin Moncure" <mmoncure@gmail.com>
> On Wed, May 9, 2012 at 8:06 AM, MauMau <maumau307@gmail.com> wrote:
>> Hello,
>>
>> I've heard from some people that synchronous streaming replication has
>> severe performance impact on the primary. They said that the transaction
>> throughput of TPC-C like benchmark (perhaps DBT-2) decreased by 50%. I'm
>> sorry I haven't asked them about their testing environment, because they
>> just gave me their experience. They think that this result is much worse
>> than some commercial database.
>
> I can't speak for other databases, but it's only natural to assume
> that tps must drop. At minimum, you have to add the latency of
> communication and remote sync operation to your transaction time. For
> very short transactions this adds up to a lot of extra work relative
> to the transaction itself.
Yes, I understand it is natural for the response time of each transaction to
double or more. But I think the throughput drop would be amortized among
multiple simultaneous transactions. So, 50% throughput decrease seems
unreasonable.
If this thinking is correct, and some could kindly share his/her past
performance evaluation results (ideally of DBT-2), I want to say to my
acquaintance "hey, community people experience better performance, so you
may need to review your configuration."
Regards
MauMau
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: maumau307@gmail.com, mmoncure@gmail.com
Subject: Re: Could synchronous streaming replication really degrade the performance of the primary?
In-Reply-To: <E7D1C27BDA0541B48AAA48ED4C0B94B5@maumau>
References: <61B94EF1D7774715BC565DD84C731BDD@maumau> <CAHyXU0w4vxULonSa+bJgALDK6gYHyvXcGj-VaZNE717ttkfXoA@mail.gmail.com> <E7D1C27BDA0541B48AAA48ED4C0B94B5@maumau>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox