Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7E07EB5DD05 for ; Fri, 7 Oct 2011 00:22:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 22699-03-5 for ; Fri, 7 Oct 2011 03:22:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-iy0-f174.google.com (mail-iy0-f174.google.com [209.85.210.174]) by mail.postgresql.org (Postfix) with ESMTP id 062F8B5DC70 for ; Fri, 7 Oct 2011 00:22:12 -0300 (ADT) Received: by iakk32 with SMTP id k32so3671011iak.19 for ; Thu, 06 Oct 2011 20:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; bh=yOFnN+cL+d4Tk6vopnVC6Cx6bNSCEv4zsCPLLMPSSrA=; b=wJagK3KBkauNY5yqkLqSKqMwv9yn9qkzbbN8Jb+08JBwEniFi9ADpFxk3upj1pg7yh osZnMjWMqRIakVy/XG3JpvY60Dr/p5dZVbE2c7FySqkWJE08dW8Pe7YcVLW7pVPSK52U aXyxPsL/sStiN1o0yldjyb8A7RMaNEWRpEcAs= Received: by 10.42.244.137 with SMTP id lq9mr9415367icb.28.1317957732372; Thu, 06 Oct 2011 20:22:12 -0700 (PDT) Received: from Duality (71-33-157-83.hlrn.qwest.net. [71.33.157.83]) by mx.google.com with ESMTPS id bj4sm16192769ibb.11.2011.10.06.20.22.09 (version=SSLv3 cipher=OTHER); Thu, 06 Oct 2011 20:22:10 -0700 (PDT) From: "mark" To: "'Ben Ciceron'" Cc: References: In-Reply-To: Subject: Re: pg9 replication over WAN ? Date: Thu, 6 Oct 2011 21:22:12 -0600 Message-ID: <00bd01cc84a0$4f57a700$ee06f500$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcyDqjvt7tGZLTtqSnC0tubjXhT9SgA7BXwA Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.179 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, SARE_SPEC_REPLICA=0.72 X-Spam-Level: X-Archive-Number: 201110/67 X-Sequence-Number: 45289 > -----Original Message----- > From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance- > owner@postgresql.org] On Behalf Of Ben Ciceron > Sent: Wednesday, October 05, 2011 3:53 PM > To: pgsql-performance@postgresql.org > Subject: [PERFORM] pg9 replication over WAN ? > > Hello, > > Has any performance or evaluation done for pg9.x streaming replication > over WAN ? > How adequate is the protocol to push WALs over long distance ? > Any best practice tuning wal_* for WAN ? > > Cheers, > Ben- Works for us between the middle of the US and the UK. This on some databases that do a few gig of log files per day. I keep a large number of wal_keep_segments because I have the disk capacity for it and the initial rsync takes a while at ~2-4MB/s. You may find you need to tune the tcp-keep alive settings, but I am not sure if that was really a change in the setting or a fix to our load balancers that fixed an issue I was seeing. Overall I am extremely pleased with streaming replication + read only hot standby. -Mark > > -- > Sent via pgsql-performance mailing list (pgsql- > performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance