X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 992705636C for ; Thu, 5 May 2005 04:08:42 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 02833-02 for ; Thu, 5 May 2005 07:08:36 +0000 (GMT) Received: from mta05-winn.mailhost.ntl.com (smtpout15.mailhost.ntl.com [212.250.162.15]) by svr1.postgresql.org (Postfix) with ESMTP id 3CB56560AF for ; Thu, 5 May 2005 04:08:35 -0300 (ADT) Received: from aamta02-winn.mailhost.ntl.com ([212.250.162.8]) by mta05-winn.mailhost.ntl.com with ESMTP id <20050505070835.UIMY1168.mta05-winn.mailhost.ntl.com@aamta02-winn.mailhost.ntl.com>; Thu, 5 May 2005 08:08:35 +0100 Received: from [127.0.0.1] (really [82.6.118.126]) by aamta02-winn.mailhost.ntl.com with ESMTP id <20050505070835.NMYQ1289.aamta02-winn.mailhost.ntl.com@[127.0.0.1]>; Thu, 5 May 2005 08:08:35 +0100 Message-ID: <4279C6E8.3030401@yellowhawk.co.uk> Date: Thu, 05 May 2005 08:10:32 +0100 From: Peter Wilson Reply-To: petew@yellowhawk.co.uk Organization: YellowHawk Ltd User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-gb MIME-Version: 1.0 To: Vlad Cc: pgsql-general@postgresql.org Subject: Re: postgresql replication References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------090809050807020306010101" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.101 tagged_above=0 required=5 tests=AWL, HTML_30_40, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200505/231 X-Sequence-Number: 77579 This is a multi-part message in MIME format. --------------090809050807020306010101 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Vlad wrote: >Hello, > >in need to increase reliability of the service (and perhaps eventually >offload main DB server) we are looking to setup replication for the >database server. I found two solutions: > >Slony ( http://gborg.postgresql.org/project/slony1/projdisplay.php ) >PGCluster ( http://pgfoundry.org/projects/pgcluster ) > >I found that PgCluster supports multi-muster mode, which we can >benefit from, but it's not required for "backup" which is #1 goal at >the moment. > >If anyone used those solutions, compared performance, reliability, etc >- please share your experience / thoughts. > > There is a 3rd option - DBMirror, which comes as part of the Postgres distribution (look in the contrib/dbmirror directory). I looked at Slony, which seems to be a current favourite -but I couldn't get it working on my database (claimed my tables didn't have relevant keys - which they do). Slony-I had almost non-existent documentation which I always find prety unacceptable unless everything goes very smoothly.. I then found DBMirror - which I'm now using to replicate replicate from master to slave database, and then cascade replicating my slave to a 3rd off-site server. Performance of DBMirror.pl (a Perl script that does the actual replication) was very poor - so I re-wrote it in C++. Some details at: http://www.whitebeam.org/library/guide/TechNotes/replicate.rhtm DBmirror doesn't replicate schema changes, which wasn't a problem for me since our schema changes very infrequently. Hope that helps Pete -- http://www.yellowhawk.co.uk http://www.whitebeam.org ----- --------------090809050807020306010101 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Vlad wrote:
Hello,

in need to increase reliability of the service (and perhaps eventually
offload main DB server) we are looking to setup replication for the
database server. I found two solutions:

Slony ( http://gborg.postgresql.org/project/slony1/projdisplay.php )
PGCluster ( http://pgfoundry.org/projects/pgcluster )

I found that PgCluster supports multi-muster mode, which we can
benefit from, but it's not required for "backup" which is #1 goal at
the moment.

If anyone used those solutions, compared performance, reliability, etc
- please share your experience / thoughts.
  
There is a 3rd option - DBMirror, which comes as part of the Postgres distribution (look in the contrib/dbmirror directory).

I looked at Slony, which seems to be a current favourite -but I couldn't get it working on my database (claimed my tables didn't have relevant keys - which they do). Slony-I had almost non-existent documentation which I always find prety unacceptable unless everything goes very smoothly..

I then found DBMirror - which I'm now using to replicate replicate from master to slave database, and then cascade replicating my slave to a 3rd off-site server.

Performance of DBMirror.pl (a Perl script that does the actual replication) was very poor - so I re-wrote it in C++. Some details at:
    http://www.whitebeam.org/library/guide/TechNotes/replicate.rhtm

DBmirror doesn't replicate schema changes, which wasn't a problem for me since our schema changes very infrequently.

Hope that helps
Pete
--
http://www.yellowhawk.co.uk
http://www.whitebeam.org
-----
--------------090809050807020306010101--