Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6FCB0474E42 for ; Sat, 5 Oct 2002 18:48:32 -0400 (EDT) Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by postgresql.org (Postfix) with ESMTP id 4955C47592C for ; Sat, 5 Oct 2002 18:48:31 -0400 (EDT) Received: (from ragnark@localhost) by stine.vestdata.no (8.11.6/8.11.2) id g95Mlt027990; Sun, 6 Oct 2002 00:47:55 +0200 Date: Sun, 6 Oct 2002 00:47:55 +0200 From: =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= To: Chris Miles Cc: pgsql-admin@postgresql.org Subject: Re: PostgreSQL and 2-node failover cluster solutions Message-ID: <20021006004755.A27763@vestdata.no> References: <20021004190528.E9444@psychofx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021004190528.E9444@psychofx.com>; from chris_pg002@psychofx.com on Fri, Oct 04, 2002 at 07:05:28PM +0100 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/34 X-Sequence-Number: 5892 On Fri, Oct 04, 2002 at 07:05:28PM +0100, Chris Miles wrote: > Hi, we have 2 PostgreSQL servers running multiple instances and would like > to automate failover between them. We store db data on NFS storage on > dedicated Netapps. We can currently perform manual failover by dropping > the instance on one server and starting in on the other (the init scripts > handle bringing virtual IP up/down and the NFS volume is automounted as > needed). Uh; why would you want to do that? Databases work much better with local storage than over NFS. > My question to you: are there any simple, reliable and free cluster/fail-over > (whatever you'd like to call it) solutions that you know of to automate > the above? I'm prepared to give a bit on the simple and free if necessary, > although reliability is pretty important. http://www.linux-ha.org/ (heartbeat) > Many other offerings floating around are either expensive commercial, or > overly complex requiring kernel patching and complicated setups. What OS? There are a very large number of linux failover software packages; commercial and free. They all have their pros and cons - I prefer heartbeat because of it's simplicity. (the main drawback of heartbeat is that it does not yet implement service-monitoring - but you can do that outside heartbeat if you want to) -- Ragnar Kjørstad