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 7FA5756371 for ; Thu, 5 May 2005 04:18:35 -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 03751-07 for ; Thu, 5 May 2005 07:18:31 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5DCC4562D6 for ; Thu, 5 May 2005 04:18:29 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id EBB0830952; Thu, 5 May 2005 09:16:34 +0200 (MET DST) From: Peter Wilson X-Newsgroups: pgsql.general Subject: Re: postgresql replication Date: Thu, 05 May 2005 08:20:31 +0100 Organization: Hub.Org Networking Services Lines: 43 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-gb In-Reply-To: To: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200505/221 X-Sequence-Number: 77569 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 -----