Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcc96982

Browse files
committed
Data Partitioning documentation section reduced and moved to the end.
1 parent42cfdfb commitcc96982

File tree

1 file changed

+22
-44
lines changed

1 file changed

+22
-44
lines changed

‎doc/src/sgml/failover.sgml

Lines changed: 22 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/failover.sgml,v 1.12 2006/11/1709:00:03 neilc Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/failover.sgml,v 1.13 2006/11/1713:29:53 momjian Exp $ -->
22

33
<chapter id="failover">
44
<title>Failover, Replication, Load Balancing, and Clustering Options</title>
@@ -137,52 +137,14 @@
137137
</varlistentry>
138138

139139
<varlistentry>
140-
<term>Data Partitioning</term>
141-
<listitem>
142-
143-
<para>
144-
Data partitioning splits tables into data sets. Each set can
145-
be modified by only one server. For example, data can be
146-
partitioned by offices, e.g. London and Paris. While London
147-
and Paris servers have all data records, only London can modify
148-
London records, and Paris can only modify Paris records. This
149-
is similar to the "Master/Slave Replication" item above, except
150-
that instead of having a read/write server and a read-only
151-
server, each server has a read/write data set and a read-only
152-
data set.
153-
</para>
154-
155-
<para>
156-
Such partitioning provides both failover and load balancing. Failover
157-
is achieved because the data resides on both servers, and this is an
158-
ideal way to enable failover if the servers share a slow communication
159-
channel. Load balancing is possible because read requests can go to any
160-
of the servers, and write requests are split among the servers. Of
161-
course, the communication to keep all the servers up-to-date adds
162-
overhead, so ideally the write load should be low, or localized as in
163-
the London/Paris example above.
164-
</para>
165-
166-
<para>
167-
Data partitioning is usually handled by application code, though rules
168-
and triggers can be used to keep the read-only data sets current. Slony-I
169-
can also be used in such a setup. While Slony-I replicates only entire
170-
tables, London and Paris can be placed in separate tables, and
171-
inheritance can be used to access both tables using a single table name.
172-
</para>
173-
</listitem>
174-
</varlistentry>
175-
176-
<varlistentry>
177-
<term>Multi-Master Replication Using Query Broadcasting</term>
140+
<term>Query Broadcasting</term>
178141
<listitem>
179142

180143
<para>
181-
One way to do multi-master replication is by having a program
182-
intercept every SQL query and send it to all servers. Each
183-
server operates independently. Read-only queries can be sent
184-
to a single server because there is no need for all servers to
185-
process it.
144+
In query broadcasting, a program intercepts every SQL query
145+
and sends it to all servers. Each server operates independently.
146+
Read-only queries can be sent to a single server because there
147+
is no need for all servers to process it.
186148
</para>
187149

188150
<para>
@@ -235,6 +197,22 @@
235197
</listitem>
236198
</varlistentry>
237199

200+
<varlistentry>
201+
<term>Data Partitioning</term>
202+
<listitem>
203+
204+
<para>
205+
Data partitioning splits tables into data sets. Each set can
206+
be modified by only one server. For example, data can be
207+
partitioned by offices, e.g. London and Paris, with a server
208+
in each office. If queries combining London and Paris data
209+
are necessary, an application can query both servers, or
210+
master/slave replication can be used to keep a read-only copy
211+
of the other office's data on each server.
212+
</para>
213+
</listitem>
214+
</varlistentry>
215+
238216
<varlistentry>
239217
<term>Clustering For Parallel Query Execution</term>
240218
<listitem>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp