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 AE6B0D1C4D0 for ; Wed, 30 Jul 2003 11:10:34 +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 50433-04 for ; Wed, 30 Jul 2003 08:09:35 -0300 (ADT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by svr1.postgresql.org (Postfix) with ESMTP id 7DFD7D1C4C9 for ; Wed, 30 Jul 2003 08:10:32 -0300 (ADT) Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19hoqP-0005jU-00; Wed, 30 Jul 2003 13:10:09 +0200 Received: from [217.230.193.186] (helo=ecologic.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19hoqO-0001Bl-00; Wed, 30 Jul 2003 13:10:08 +0200 Message-ID: <3F27A78E.1010305@ecologic.de> Date: Wed, 30 Jul 2003 13:10:06 +0200 From: Dani Oderbolz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Ragnar_Kj=F8rstad?= Cc: Renney Thomas , pgsql-admin@postgresql.org Subject: Re: Replication/Failover/HA solution References: <3F1C6503.9080205@cris.com> <20030729151611.GB21461@vestdata.no> In-Reply-To: <20030729151611.GB21461@vestdata.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/320 X-Sequence-Number: 9660 Ragnar Kjørstad wrote: >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. > > 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/ Regards, Dani