Re: Synchronization levels in SR

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Simon Riggs <simon(at)2ndQuadrant(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Synchronization levels in SR
Date: 2010-05-27 22:47:34
Message-ID: 875D5683-D747-4568-B588-21D24445EB3B@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On May 27, 2010, at 4:31 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> Heikki Linnakangas wrote:
>> BTW, I think we're going to need a separate config file for listing
>> the
>> standbys anyway. There you can write per-server rules and options,
>> but
>> explicitly knowing about all the standbys also allows the master to
>> recycle WAL as soon as it has been streamed to all the registered
>> standbys. Currently we just keep wal_keep_segments files around,
>> just in
>> case there's a standby out there that needs them.
>
> Ideally we could set 'slave_sync_count' and
> 'slave_commit_continue_mode'
> on the master, and allow the sync/async mode to be set on each slave,
> e.g. if slave_sync_count = 2 and slave_commit_continue_mode = #2, then
> two slaves with sync mode of #2 or stricter have to complete before
> the
> master can continue.
>
> Naming the slaves on the master seems very confusing because I am
> unclear how we would identify named slaves, and the names have to
> match,
> etc.

The names could be configured with a GUC on the slaves, or we could
base it on the login role.

...Robert

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mohammad Heykal Abdillah 2010-05-27 22:56:29 Re: Why my manualy constructed raw parser tree produce failed to execute?
Previous Message David Fetter 2010-05-27 22:03:52 Re: functional call named notation clashes with SQL feature