Re: Postgres Clustering Options

From: David Kerr <dmk(at)mr-paradox(dot)net>
To: Greg Smith <greg(at)2ndquadrant(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres Clustering Options
Date: 2009-11-11 19:01:41
Message-ID: 20091111190141.GA27824@mr-paradox.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Nov 11, 2009 at 01:35:58PM -0500, Greg Smith wrote:
- David Kerr wrote:
- >The apps actually aren't as robust as the DB in this case, so i'll have
- >time to
- >replay all of the logs that made it before "the big one" while those are
- >being
- >configured to come up. and if it does take longer that's not a huge issue
- >i'll have a few hours to get 100% caught up.
- >
- It sounds like you've got the basics nailed down here and are on a well
- trod path, just one not one documented publicly very well. Since you
- said that even DRBD was too much overhead for you, I think a dive into
- evaluating the commercial clustering approaches (or the free LinuxHA
- that RedHat's is based on, which I haven't been real impressed by) would
- be appropriate. The hard part is generally getting a heartbeat between
- the two servers sharing the SAN that is both sensitive enough to catch
- failures while not being so paranoid that it fails over needlessly (say,
- when load spikes on the primary and it slows down). Make sure you test
- that part out very carefully with any vendor you evaluate.
-
- As far as the PostgreSQL specifics go, you need a solid way to ensure
- you've disconnected the now defunct master from the SAN (the classic
- "shoot the other node in the head" problem). All you *should* have to
- do is start the database again on the backup after doing that. That
- will come up as a standard crash, run through WAL replay crash recovery,
- and the result should be no different than had you restarted after a
- crash on the original node. The thing you cannot let happen is allowing
- the original master to continue writing to the shared SAN volume once
- that transition has happened.

Thanks Greg that sounds good! and puts my (and my management's) concerns at ease!

Dave

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2009-11-11 19:05:32 Re: Postgres Clustering Options
Previous Message Bosco Rama 2009-11-11 18:58:43 Re: Upgrading databases