Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 9BCC89E8853 for ; Wed, 9 May 2012 19:36:09 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SSFUN-0004MO-2L for pgsql-performance@postgresql.org; Wed, 09 May 2012 22:36:08 +0000 Received: by pbbrp8 with SMTP id rp8so1067936pbb.19 for ; Wed, 09 May 2012 15:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-type:content-transfer-encoding:x-priority :x-msmail-priority:x-mailer:x-mimeole; bh=97QcFfpM27CZ6f0VHGr8I76bmtCqk12GFbxLqExl+p0=; b=YAwEl6FbarnoWLR1+Miwf1XkQbKTu1HrFTLZCJ20J+1t05py6Rw2Dtlk+4awMaDE7H r7iimQUf52yjNHmLluXuUo9UEvJnY4oLSK7Df4iENlupTsrJLiNJ2WtXw9ejULD7tsh0 noyBa9Qjgu3uuQKqYdn3oXmlfq9cw47CgGElw7C86sNVDpYwt8MevKxyK3/kVKbNsmCV 0qJMJZcJKOPKkrLH99TnlmVrg2QxcdWQtBROm+s2hOUEdsy/O/As4r8tnl+7DlL2rM4z r8jFzKKQOz/qDhSEHaKe/5adLLrKknWY4X8Quq0jj76vR+/jj1AIwFNrVTp56tCaNWq9 gVwQ== Received: by 10.68.221.74 with SMTP id qc10mr13405402pbc.80.1336602953312; Wed, 09 May 2012 15:35:53 -0700 (PDT) Received: from maumau (p1042-ipbfp401sizuokaden.shizuoka.ocn.ne.jp. [122.20.60.42]) by mx.google.com with ESMTPS id y5sm7425762pbk.5.2012.05.09.15.35.51 (version=SSLv3 cipher=OTHER); Wed, 09 May 2012 15:35:52 -0700 (PDT) Message-ID: From: "MauMau" To: "Merlin Moncure" Cc: References: <61B94EF1D7774715BC565DD84C731BDD@maumau> In-Reply-To: Subject: Re: Could synchronous streaming replication really degrade the performance of the primary? Date: Thu, 10 May 2012 07:34:04 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18463 X-Pg-Spam-Score: -2.0 (--) X-Archive-Number: 201205/72 X-Sequence-Number: 46896 From: "Merlin Moncure" > On Wed, May 9, 2012 at 8:06 AM, MauMau 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