Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 57329632E86 for ; Tue, 9 Feb 2010 03:00:10 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 80770-09 for ; Tue, 9 Feb 2010 06:59:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.transporeon-hq.com (mail.transporeon-hq.com [213.179.145.36]) by mail.postgresql.org (Postfix) with ESMTP id 51ACC632E3D for ; Tue, 9 Feb 2010 02:59:29 -0400 (AST) Received: from localhost ([127.0.0.1]) by mail.transporeon-hq.com with esmtp (Exim 4.69) (envelope-from ) id 1Nek4D-0000vC-2V; Tue, 09 Feb 2010 07:59:26 +0100 X-Virus-Scanned: Scanned by transporeon.com Received: from mail.transporeon-hq.com ([127.0.0.1]) by localhost (mail.transporeon.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GIv3xYDq8-4G; Tue, 9 Feb 2010 07:59:21 +0100 (CET) Received: from [213.179.145.35] (helo=bionade.localnet) by mail.transporeon-hq.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Nek48-0000uz-Rf; Tue, 09 Feb 2010 07:59:21 +0100 From: Gerd Koenig Organization: Transporeon GmbH To: pgsql-admin@postgresql.org Subject: Re: Best Replication Tool Date: Tue, 9 Feb 2010 07:59:16 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.31.12-174.2.3.fc12.i686; KDE/4.3.5; i686; ; ) Cc: Rosser Schwarz , Kiswono Prayogo References: <99024f5f1002071922j5b14c350mb1612313690f16ec@mail.gmail.com> <37d451f71002081438v10f87e0ax1ae6533a958e9691@mail.gmail.com> In-Reply-To: <37d451f71002081438v10f87e0ax1ae6533a958e9691@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201002090759.16503.koenig@transporeon.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.355 tagged_above=-10 required=5 tests=AWL=-0.296, BAYES_05=-1.11, FS_REPLICA=1.041, SARE_SPEC_REPLICA=0.72 X-Spam-Level: X-Archive-Number: 201002/65 X-Sequence-Number: 33668 Hi, probably pgpool-II is worth trying. A new version has been released two day= s=20 ago.... http://pgfoundry.org/projects/pgpool hth ..:GERD:.. On Monday 08 February 2010 23:38:54 Rosser Schwarz wrote: > On Sun, Feb 7, 2010 at 8:22 PM, Kiswono Prayogo wrote: > > Hi, i'm really new to postgresql replication, was there any > > replication tool for postgresql that can do real-time replication from > > 1 database to ~3-10 database (on the other machines) with little > > overhead for load balancing purpose? >=20 > If, by "real time", you mean that a tuple created or changed on the > master is visible to queries on an arbitrary slave within a few > seconds, then Bucardo and Slony are both good candidates. I've used > Bucardo in just such an environment, along with its master-master > capability. Of the two, I definitely prefer the former, but this > isn't an advocacy list, and they both work. >=20 > The amount of overhead you'll experience is a function of how "chatty" > your data is -- the higher the volume of changes it needs to > replicate, the more work it will take to keep those changes flowing > out to the slave nodes. If you update the same tuple three times in a > five second period, that's three tuples you'll be replicating out to > each slave. >=20 > Another important consideration is the size of your replication sets > (in Slony terms; "herds" in Bucardo). The bigger they are -- the more > tables they include -- the more work it will take to replicate any > changes in any of their member objects. IME, you'll typically do well > to keep your sets down to the smallest meaningful groups you can. > Particularly, you'll want to group together tables that are > interrelated by foreign keys (this is especially important if you're > using Slony, and have any plans to support switching masters), or that > you expect to be modified together -- for example, all the tables that > might be modified in the course of a new order being entered into your > OLTP application. >=20 > rls >=20 =2D-=20 /=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\ | Gerd K=F6nig | - Infrastruktur - | | TRANSPOREON GmbH | Magirus-Deutz-Str. 16=20 | DE - 89077 Ulm | | Tel: +49 [0]731 16906 106 | Fax: +49 [0]731 16906 99 | koenig@transporeon.com | www.transporeon.com | \=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D/ TRANSPOREON GmbH, Amtsgericht Ulm, HRB 722056 Gesch=E4ftsf.: Peter F=F6rster, Roland H=F6tzl, Marc-Oliver Simon