pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Wilson <petew@yellowhawk.co.uk>
To: Vlad <marchenko@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: postgresql replication
Date: Thu, 05 May 2005 08:10:32 +0100
Message-ID: <4279C6E8.3030401@yellowhawk.co.uk> (raw)
In-Reply-To: <cd70c68105050417495e2b2594@mail.gmail.com>
References: <cd70c68105050417495e2b2594@mail.gmail.com>

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
-----

view thread (91+ messages)  latest in thread

Message-ID: <4279C6E8.3030401@yellowhawk.co.uk>
Permalink:  ../4279C6E8.3030401@yellowhawk.co.uk/
Also on:    postgresql.org/message-id/4279C6E8.3030401@yellowhawk.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: petew@yellowhawk.co.uk, marchenko@gmail.com
  Subject: Re: postgresql replication
  In-Reply-To: <4279C6E8.3030401@yellowhawk.co.uk>
  References: <cd70c68105050417495e2b2594@mail.gmail.com> <4279C6E8.3030401@yellowhawk.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox