Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A96F1B5DC61 for ; Thu, 11 Aug 2011 11:46:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 18015-04 for ; Thu, 11 Aug 2011 14:46:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id 74D2EB5D91F for ; Thu, 11 Aug 2011 11:46:44 -0300 (ADT) Received: by fxh19 with SMTP id 19so1716540fxh.19 for ; Thu, 11 Aug 2011 07:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=GsbrFL/3Jx1+5UnKo3watP/NVaPhoPF8/1R1jd8nCW4=; b=o63phzE7dHOgyLNftuxuNwjufMBZlo/k8IJrscZuRMO1Mo9cjIvExRojIfUjE78TN6 pd1D6XfH3nL9ApawAscLsBE+d1md38wzQH+fMMhGmO9PjHw5AQK5ye2vUQCaXyJHa0tG QazRRvBELXFOyxu3jGdeYoogikj3m7+L947Ns= Received: by 10.223.101.90 with SMTP id b26mr7795fao.29.1313074003820; Thu, 11 Aug 2011 07:46:43 -0700 (PDT) Received: from ltafaltynek.localnet (npt-90-183-39-152.net.chservices.cz [90.183.39.152]) by mx.google.com with ESMTPS id d1sm1618365fai.4.2011.08.11.07.46.42 (version=SSLv3 cipher=OTHER); Thu, 11 Aug 2011 07:46:42 -0700 (PDT) From: Antonin Faltynek Reply-To: pin007@gmail.com To: pgsql-performance@postgresql.org Subject: Streaming replication performance Date: Thu, 11 Aug 2011 16:46:38 +0200 User-Agent: KMail/1.13.7 (Linux/2.6.39-2-686-pae; KDE/4.6.5; i686; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201108111646.39321.pin007@gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.069 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001, SARE_SPEC_REPLICA=0.72, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201108/134 X-Sequence-Number: 44581 Hi all, I'm testing Streamin replication with one hot standby node and I'm experiencing high delay of hot standby node. When I reach aprox. 50 transactions per second where every transaction includes only simple "UPDATE status SET number = number + 1 WHERE name = 'iterations'", the standby server falls behind master and the delay is several minutes. In comparison, Slony1 have no issues with the same test and its delay is only several seconds. Am I missing some configuration that affects speed of streaming replicaiton? Both servers are connected using 1Gb network, CPU usage of both servers is low, disk latency is not issue. master server postgresql.conf ----- wal_level = 'hot_standby' vacuum_defer_cleanup_age = 10000 checkpoint_segments = 8 checkpoint_timeout = 30s archive_mode = off max_wal_senders = 3 wal_sender_delay = 10ms wal_keep_segments = 128 ----- standby server postgresql.conf ----- hot_standby = on max_standby_streaming_delay = 30s ----- standby server recovery.conf ----- standby_mode = 'on' primary_conninfo = 'host=master port=5432 user=replication2 password=password' trigger_file = '/var/lib/postgresql/9.0/main/replica_trigger' ----- Thank you for any advice Antonin Faltynek