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 3BBDAD1C94B for ; Tue, 29 Jul 2003 15:16:30 +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 77817-01 for ; Tue, 29 Jul 2003 12:15:30 -0300 (ADT) Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by svr1.postgresql.org (Postfix) with ESMTP id BD913D1C943 for ; Tue, 29 Jul 2003 12:16:27 -0300 (ADT) Received: (from ragnark@localhost) by stine.vestdata.no (8.11.6/8.11.6) id h6TFGBh31597; Tue, 29 Jul 2003 17:16:11 +0200 Date: Tue, 29 Jul 2003 17:16:11 +0200 From: Ragnar =?unknown-8bit?Q?Kj=F8rstad?= To: Renney Thomas Cc: pgsql-admin@postgresql.org Subject: Re: Replication/Failover/HA solution Message-ID: <20030729151611.GB21461@vestdata.no> References: <3F1C6503.9080205@cris.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F1C6503.9080205@cris.com> User-Agent: Mutt/1.5.2i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/287 X-Sequence-Number: 9627 On Mon, Jul 21, 2003 at 06:11:15PM -0400, Renney Thomas wrote: > I am having a hard time selecting a Replication/Failover/HA solution for > PGSQL. What is troubling is the number of solutions available in various > states of development. Does the fact that dbmirror and rserv appear in > the contrib directory, mean that they should be looked upon with more > legitimacy? Any suggestions? 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. Make sure you have proper fencing in place, so you don't end up in a situation where both nodes are active and modifying your database. You should probably subscribe to the linux-ha mailinglist if you want to take this approach. -- Ragnar Kjorstad