From: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com> |
---|---|
To: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, jd(at)commandprompt(dot)com, Thom Brown <thom(at)linux(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Dave Page <dpage(at)pgadmin(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Configuring synchronous replication |
Date: | 2010-09-24 10:53:45 |
Message-ID: | m28w2rcszq.fsf@hi-media.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> If you want the behavior where the master doesn't acknowledge a commit to
> the client until the standby (or all standbys, or one of them etc.)
> acknowledges it, even if the standby is not currently connected, the master
> needs to know what standby servers exist. *That's* why synchronous
> replication needs a list of standby servers in the master.
And this list can be maintained in a semi-automatic fashion:
- adding to the list is done by the master as soon as a standby connects
maybe we need to add a notion of "fqdn" in the standby setup?
- service level and current weight and any other knob that comes from
the standby are changed on the fly by the master if that changes on
the standby (default async, 1, but SIGHUP please)
- current standby position (LSN for recv, fsync and replayed) of the
standby, as received in the "feedback loop" are changed on the fly by
the master
- removing a standby has to be done manually, using an admin function
that's the only way to sort out permanent vs transient unavailability
- checking the current values in this list is done on the master by
using some system view based on a SRF, as already said
Regards,
--
dim
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2010-09-24 10:57:31 | Re: Configuring synchronous replication |
Previous Message | Dimitri Fontaine | 2010-09-24 10:44:29 | Re: Configuring synchronous replication |
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2010-09-24 10:57:31 | Re: Configuring synchronous replication |
Previous Message | Dimitri Fontaine | 2010-09-24 10:44:29 | Re: Configuring synchronous replication |