X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id C64F5D1C4E7 for ; Wed, 30 Jul 2003 14:01:03 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 62520-04 for ; Wed, 30 Jul 2003 11:00:05 -0300 (ADT) Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by svr1.postgresql.org (Postfix) with ESMTP id 12D08D1C4D7 for ; Wed, 30 Jul 2003 11:01:01 -0300 (ADT) Received: (from ragnark@localhost) by stine.vestdata.no (8.11.6/8.11.6) id h6UE0gX29250; Wed, 30 Jul 2003 16:00:42 +0200 Date: Wed, 30 Jul 2003 16:00:42 +0200 From: Ragnar =?unknown-8bit?Q?Kj=F8rstad?= To: Dani Oderbolz Cc: Renney Thomas , pgsql-admin@postgresql.org Subject: Re: Replication/Failover/HA solution Message-ID: <20030730140042.GG21461@vestdata.no> References: <3F1C6503.9080205@cris.com> <20030729151611.GB21461@vestdata.no> <3F27A78E.1010305@ecologic.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F27A78E.1010305@ecologic.de> User-Agent: Mutt/1.5.2i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/323 X-Sequence-Number: 9663 On Wed, Jul 30, 2003 at 01:10:06PM +0200, Dani Oderbolz wrote: > >One possibility is to run postgresql (regular postgresql - no patches > >required) controlled by heartbeat (http://www.linux-ha.org/) on two > >nodes. Heartbeat will then make sure that only one of the nodes are > >active at any time. > > > >You will have to put the databases on shared storage; either something > >like a shared SCSI RAID, or a software replication device like drdb or > >md+nbd. > > Another possibility (which I have not yet tested, but it was mentioned > in many Magazine Articles > (Linux Magazine, the German iX) is DRBD. > This Tool creates a RAID which is Shared betwenn 2 Nodes. > One Node is the Master and the Other is the Slave (and failover Node). > The Master writes data locally and sends the data over to the slave. > There are 3 Modes of Operation, A with highest Troughput but least > trust, B with Medium Troughput, > but Acceptable trust, and C with lowest (but still ok) troughput and > highest trust. > > Just check it out here: > > http://www.complang.tuwien.ac.at/reisner/drbd/ If you read my post carefully you will actually see it's the _same_ possibility :) But DRDB is only part of the solution - you also need something like heartbeat to manage what node postgresql runs on. -- Ragnar Kjorstad