summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2017-04-19 02:58:28 +0900
committerFujii Masao <fujii@postgresql.org>2017-04-19 02:58:28 +0900
commita790ed9f69ef584c12aec68d0d80e6b6b543bacb (patch)
tree1ec79e8d5ee5f397c09fbf1824fd458860ee99f1 /doc/src
parente240a65c7dfc5ad80ab757ecb1aa9b9032c7f8ae (diff)
Improve documentation and comment for quorum-based sync replication.
Author: Masahiko Sawada, heavily modified by me Discussion: http://postgr.es/m/CAHGQGwEKOw=SmPLxJzkBsH6wwDBgOnVz46QjHbtsiZ-d-2RGUg@mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/high-availability.sgml21
1 files changed, 16 insertions, 5 deletions
diff --git a/doc/src/sgml/high-availability.sgml b/doc/src/sgml/high-availability.sgml
index 51359d6236f..9e2be5f67ca 100644
--- a/doc/src/sgml/high-availability.sgml
+++ b/doc/src/sgml/high-availability.sgml
@@ -1084,8 +1084,8 @@ primary_slot_name = 'node_a_slot'
In the case that <varname>synchronous_commit</> is set to
<literal>remote_apply</>, the standby sends reply messages when the commit
record is replayed, making the transaction visible.
- If the standby is chosen as a synchronous standby, from a priority
- list of <varname>synchronous_standby_names</> on the primary, the reply
+ If the standby is chosen as a synchronous standby, according to the setting
+ of <varname>synchronous_standby_names</> on the primary, the reply
messages from that standby will be considered along with those from other
synchronous standbys to decide when to release transactions waiting for
confirmation that the commit record has been received. These parameters
@@ -1246,9 +1246,20 @@ synchronous_standby_names = 'FIRST 2 (s1, s2, s3)'
The best solution for high availability is to ensure you keep as many
synchronous standbys as requested. This can be achieved by naming multiple
potential synchronous standbys using <varname>synchronous_standby_names</>.
- The standbys whose names appear earlier in the list will be used as
- synchronous standbys. Standbys listed after these will take over
- the role of synchronous standby if one of current ones should fail.
+ </para>
+
+ <para>
+ In a priority-based synchronous replication, the standbys whose names
+ appear earlier in the list will be used as synchronous standbys.
+ Standbys listed after these will take over the role of synchronous standby
+ if one of current ones should fail.
+ </para>
+
+ <para>
+ In a quorum-based synchronous replication, all the standbys appearing
+ in the list will be used as candidates for synchronous standbys.
+ Even if one of them should fail, the other standbys will keep performing
+ the role of candidates of synchronous standby.
</para>
<para>