Re: Standbys which don't synch to disk?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Standbys which don't synch to disk?
Date: 2011-05-11 17:23:32
Message-ID: BANLkTikSFLcjx628d17ETTANqJYdPUPofg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 11, 2011 at 1:12 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> For 9.1, both master and replica in a sync replication relationship are
> required to be fsync'ing to disk.  I understand why we had to do that
> for our first cut at synch rep.  Do you think, though, that it might
> become possible to replicate without synch-to-disk for 9.2?
>
> The use case I have is cloud hosting, where I'd rather have two or three
> synchronous standbys than synch to disk.

It's already possible to set fsync=off on the standby if you want. If
there is an OS-level crash you'll need to rebuild the standby, but in
some cases that may be acceptable.

And Simon has already written a patch to add a "receive" mode to sync
rep, which I expected will get committed to 9.2. In that mode, the
standby can acknowledge the WAL records as soon as they are received,
and write them to disk just after. I think we do need some
benchmarking there, to figure out whether any changes to the timing of
replies are needed in that case. But the basic principal seems sound.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-05-11 17:25:58 Re: potential bug in trigger with boolean params
Previous Message Josh Berkus 2011-05-11 17:12:37 Standbys which don't synch to disk?