Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6E76D9E8851 for ; Wed, 9 May 2012 10:07:44 -0300 (ADT) Received: from mail-pz0-f46.google.com ([209.85.210.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SS6cI-0002l7-Dy for pgsql-performance@postgresql.org; Wed, 09 May 2012 13:07:44 +0000 Received: by dady13 with SMTP id y13so287540dad.19 for ; Wed, 09 May 2012 06:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:mime-version:content-type :content-transfer-encoding:x-priority:x-msmail-priority:x-mailer :x-mimeole; bh=6O8PNWKe1JlGEy7ZecI6iO3mD8YiAeb5qwIxl1qkQgo=; b=TukQc44Zy1IpCHSemzRaz3tU9Hn3Y/fVicvQbFu9YEGK5II5v7Od87ph5QGFVjYA81 Dni0tQL99O3yW1mfb0kIRMBoLPNgF0C9Pw8Dv7Ra/Z0ov2Uifcw5/o2qAJVhrXxE5+UM JGVt/g9NYn2VbiE1gVKv0/Ih4HM6T5YH0gk4mIkWhBz8Liy1eARwOwPhE3EYJtrKeKad cZ24abSDTm5j17/Mfqw7mb33kfJKJ6bCkaodEQg/D7Dj0ZiAFSDCOrc21i8xwc3HpROS Pwn2s5U3kDU9Ku7UCINfiowVttdKnguHrGebkZVMkcS3N+kdxc6pXK3R17YB0b8wJ8kq eqZw== Received: by 10.68.216.2 with SMTP id om2mr1742316pbc.65.1336568849419; Wed, 09 May 2012 06:07:29 -0700 (PDT) Received: from maumau (p1042-ipbfp401sizuokaden.shizuoka.ocn.ne.jp. [122.20.60.42]) by mx.google.com with ESMTPS id nk2sm6037634pbc.54.2012.05.09.06.07.27 (version=SSLv3 cipher=OTHER); Wed, 09 May 2012 06:07:28 -0700 (PDT) Message-ID: <61B94EF1D7774715BC565DD84C731BDD@maumau> From: "MauMau" To: Subject: Could synchronous streaming replication really degrade the performance of the primary? Date: Wed, 9 May 2012 22:06:17 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; 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: 1.3 (+) X-Archive-Number: 201205/65 X-Sequence-Number: 46889 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'm surprised. I know that the amount of transaction logs of PostgreSQL is larger than other databases because it it logs the entire row for each update operation instead of just changed columns, and because of full page writes. But I can't (and don't want to) believe that those have such big negative impact. Does anyone have any experience of benchmarking synchronous streaming replication under TPC-C or similar write-heavy workload? Could anybody give me any performance evaluation result if you don't mind? Regards MauMau