1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/high-availability.sgml,v 1.11 2006/11/22 04:01:40 momjian Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/high-availability.sgml,v 1.12 2006/11/22 17:36:52 momjian Exp $ -->
2
2
3
3
<chapter id="high-availability">
4
4
<title>High Availability and Load Balancing</title>
49
49
meaning that a data-modifying transaction is not considered
50
50
committed until all servers have committed the transaction. This
51
51
guarantees that a failover will not lose any data and that all
52
- load-balanced servers will return consistent results with little
53
- propagation delay . Asynchronous updating has a delay between the
54
- time of commit and its propagation to the other servers, opening
55
- the possibility that some transactions might be lost in the switch
56
- to a backup server, and that load balanced servers might return
57
- slightly stale results. Asynchronous communication is used when
58
- synchronous would be too slow.
52
+ load-balanced servers will return consistent results no matter
53
+ which server is queried . Asynchronous updating has a delay between
54
+ the time of commit and its propagation to the other servers,
55
+ opening the possibility that some transactions might be lost in
56
+ the switch to a backup server, and that load balanced servers
57
+ might return slightly stale results. Asynchronous communication
58
+ is used when synchronous would be too slow.
59
59
</para>
60
60
61
61
<para>
@@ -110,7 +110,7 @@ https://forge.continuent.org/pipermail/sequoia/2006-November/004070.html
110
110
111
111
Oracle RAC is a shared disk approach and just send cache invalidations
112
112
to other nodes but not actual data. As the disk is shared, data is
113
- only commited once to disk and there is a distributed locking
113
+ only committed once to disk and there is a distributed locking
114
114
protocol to make nodes agree on a serializable transactional order.
115
115
-->
116
116
@@ -178,29 +178,29 @@ protocol to make nodes agree on a serializable transactional order.
178
178
using two-phase commit (<xref linkend="sql-prepare-transaction"
179
179
endterm="sql-prepare-transaction-title"> and <xref
180
180
linkend="sql-commit-prepared" endterm="sql-commit-prepared-title">.
181
- Pgpool is an example of this type of replication.
181
+ Pgpool and Sequoia are an example of this type of replication.
182
182
</para>
183
183
</listitem>
184
184
</varlistentry>
185
185
186
186
<varlistentry>
187
- <term>Synchonous Multi-Master Replication</term>
187
+ <term>Synchronous Multi-Master Replication</term>
188
188
<listitem>
189
189
190
190
<para>
191
- In synchonous multi-master replication, each server can accept
191
+ In synchronous multi-master replication, each server can accept
192
192
write requests, and modified data is transmitted from the
193
193
original server to every other server before each transaction
194
194
commits. Heavy write activity can cause excessive locking,
195
195
leading to poor performance. In fact, write performance is
196
196
often worse than that of a single server. Read requests can
197
- be sent to any server. Some implementations use cluster-wide
198
- shared memory or shared disk to reduce the communication
199
- overhead. Clustering is best for mostly read workloads, though
200
- its big advantage is that any server can accept write requests
201
- — there is no need to partition workloads between master
202
- and slave servers, and because the data changes are sent from
203
- one server to another, there is no problem with non-deterministic
197
+ be sent to any server. Some implementations use shared disk
198
+ to reduce the communication overhead. Synchronous multi-master
199
+ replication is best for mostly read workloads, though its big
200
+ advantage is that any server can accept write requests —
201
+ there is no need to partition workloads between master and
202
+ slave servers, and because the data changes are sent from one
203
+ server to another, there is no problem with non-deterministic
204
204
functions like <function>random()</>.
205
205
</para>
206
206
@@ -222,9 +222,11 @@ protocol to make nodes agree on a serializable transactional order.
222
222
<para>
223
223
For servers that are not regularly connected, like laptops or
224
224
remote servers, keeping data consistent among servers is a
225
- challenge. One simple solution is to allow each server to
226
- modify the data, and have periodic communication compare
227
- databases and ask users to resolve any conflicts.
225
+ challenge. Using asynchronous multi-master replication, each
226
+ server works independently, and periodically communicates with
227
+ the other servers to identify conflicting transactions. The
228
+ conflicts can be resolved by users or conflict resolution rules.
229
+ rules.
228
230
</para>
229
231
</listitem>
230
232
</varlistentry>
0 commit comments