Re: Issues with Quorum Commit

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>
Cc: Markus Wanner <markus(at)bluegap(dot)ch>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Jeff Davis <pgsql(at)j-davis(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Issues with Quorum Commit
Date: 2010-10-08 02:52:29
Message-ID: AANLkTimhj+aXXtrV-chhzqVocNSz1bQbRJptQHgNMkw_@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Oct 6, 2010 at 9:22 PM, Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> wrote:
> From my experience operating londiste, those states would be:
>
>  1. base-backup  — self explaining
>  2. catch-up     — getting the WAL to catch up after base backup
>  3. wanna-sync   — don't yet have all the WAL to get in sync
>  4. do-sync      — all WALs are there, coming soon
>  5. ok (async | recv | fsync | reply — feedback loop engaged)

I agree to mange these standby states in a different standpoint.

To avoid data loss, we must not promote the standby which is
catching up with the master in half way to the new master at the
failover. If clusterware can get the current standby state via SQL,
it can check whether the failover causes data loss or not
and give up failover before creating the trigger file.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2010-10-08 03:18:34 Re: Git cvsserver serious issue
Previous Message Tom Lane 2010-10-08 02:52:08 Re: GIN vs. Partial Indexes