[Pgcluster-general] Question about setting up PGCluster

Holger Lehmann holger.lehmann at catworkx.de
Thu Nov 1 15:01:22 UTC 2007


Am Donnerstag, 1. November 2007 15:40:00 schrieb Sean Brown:
> On Nov 1, 2007, at 10:24 AM, Holger Lehmann wrote:
> > Hi Sean,
> >
> > Am Donnerstag, 1. November 2007 15:13:24 schrieb Sean Brown:
> >> I am working on setting up a PostgreSQL cluster using PGCluster. I
> >> have one question about the replication server.
> >>
> >> Is the replication server supposed to run on another system or is it
> >> a daemon that runs on each Node? If it is supposed to run on a
> >
> > only one pgreplicate instance is needed, although you can run more
> > than one if
> > you want to be failsafe. Where you start them is completely up to
> > you. You
> > can start them on the same machine where your postgresql runs or on
> > another
> > machine.
> >
> >> separate system can anyone provide pointers on sizing the system?
> >
> > Gee, for pgreplicate, make some space for the logfile, you need
> > some good I/O
> > troughput, make shure memory is not too tight. It all depends on
> > how many
> > data must be replicated in what time ... I guess you might want to
> > play
> > around with pgcbench (several times in a loop) and see what happens.
>
> Ok, so if the idea is that we don't loose any data in the event that
> one node goes down, and when it comes back it can be restored to

That depends on how you "write" data to your databases.

> where it should be and I don't want (currently) a separate machine to
> run pgreplicate I would choose to run pgreplicate on each node in the
> cluster.

on the crashed node do:
pg_ctl .... -o "-i -R" 
(or instead of -R use -r or -u, whateever you like). This will resync your 
formerly crashed cluster server like this:
- crashed node talks to pgreplicate: "Hi, I am back, please resync me"
- pgreplicate talks to a working node to now become the "master" for the time 
being and to the crashed node to become the salve
- nodes sync the filesystem files directly using rsync over ssh, so make sure 
you have that one setup perfectly (BTW: I used ssh -2 instead of ssh -1) and 
no password or hosts prompts happen between any of the nodes anymore (logging 
in spree ...)
- After a successful 2-stage sync, your crashed node is back up again and 
working

>
> Do I understand and have that straight?
>
> >> I'm planning on setting up a Master/Slave Cluster so I won't be using
> >> the load balancer.
> >
> > Um, sorry, Master-Slave Replications are this way:
> > http://pgfoundry.org/projects/slony1/ (Slony-I), just kidding.
> > PGReplicate is
> > a full Multi-Master Replicator and cannot be configured to be a
> > Master-Slave
> > Replicator. You can force you applications to behave so, but you do
> > not need
> > to :-)
>
> There were other reasons why Slony wasn't going to work out for us so
> yes, while we could set up multimaster, we will be choosing not to
> right now.

:-)

>
>
> _______________________________________________
> Pgcluster-general mailing list
> Pgcluster-general at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/pgcluster-general



-- 
Sollten Sie noch Fragen haben oder sollte etwas unklar sein, so e-mailen Sie 
mir doch bitte oder rufen Sie mich unter unten stehender Nummer an.

Mit freundlichen Gruessen,
- H. Lehmann

-----------------------------------------------------------------
Building Bridges
-o-o-o-o---------------------------------------------------------

catWorkX GmbH
Dipl.-Ing. Holger Lehmann
Schellerdamm 16
21079 Hamburg

Tel: +49 (700) catWorkX
Tel: +49 (40)  89 06 46-0
Fax: +49 (40)  89 06 46-66
Mobil: +49 (172) 420 99 99

mailto:Holger.Lehmann at catworkx.de
http://www.catworkx.de

-
Diese Information ist ausschliesslich fuer den Adressaten bestimmt und kann 
vertraulich oder gesetzlich geschuetzte Informationen enthalten. Wenn Sie nicht 
der bestimmungsgemaesse Adressat sind, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail.
Anderen als dem bestimmungsgemaessen Adressaten ist es untersagt, diese E-Mail 
weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu verwenden. Wir 
verwenden aktuelle Virenschutzprogramme und Content-Filter.
Fuer Schaeden, die dem Empfaenger gleichwohl durch von uns zugesandte mit Viren 
befallene E-Mails entstehen, schliessen wir jede Haftung aus.
-         
This e-mail and any attachments is confidential and solely intended for the 
indicated addressee. If you are not the intended recipient or an authorized 
person, please note, that any form of notice, disclosure, reproduction or 
circulation of the contents of this mail is prohibited. In this case, please 
immediately inform the sender of the e-mail an destroy this e-mail. We use 
updated antivirus protection software. We do not accept any responsibility for 
damages caused anyhow by viruses.
-
catWorkX GmbH: Sitz der Gesellschaft in Hamburg, HRB: 71494, USt-IdNr.: 
DE201625856, Geschaeftsfuehrung: Dipl. Kfm. Andreas Girnuweit, Dipl.-Ing. Oliver 
Groht, Dr. Wolfgang Tank


More information about the Pgcluster-general mailing list