From cc9698254c9cff7c36ed1e7ea78dad51d87616b1 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 17 Nov 2006 13:29:53 +0000 Subject: [PATCH] Data Partitioning documentation section reduced and moved to the end. --- doc/src/sgml/failover.sgml | 66 ++++++++++++++++------------------------------ 1 file changed, 22 insertions(+), 44 deletions(-) diff --git a/doc/src/sgml/failover.sgml b/doc/src/sgml/failover.sgml index 3957d3ef45..29d770c73e 100644 --- a/doc/src/sgml/failover.sgml +++ b/doc/src/sgml/failover.sgml @@ -1,4 +1,4 @@ - + Failover, Replication, Load Balancing, and Clustering Options @@ -137,52 +137,14 @@ - Data Partitioning - - - - Data partitioning splits tables into data sets. Each set can - be modified by only one server. For example, data can be - partitioned by offices, e.g. London and Paris. While London - and Paris servers have all data records, only London can modify - London records, and Paris can only modify Paris records. This - is similar to the "Master/Slave Replication" item above, except - that instead of having a read/write server and a read-only - server, each server has a read/write data set and a read-only - data set. - - - - Such partitioning provides both failover and load balancing. Failover - is achieved because the data resides on both servers, and this is an - ideal way to enable failover if the servers share a slow communication - channel. Load balancing is possible because read requests can go to any - of the servers, and write requests are split among the servers. Of - course, the communication to keep all the servers up-to-date adds - overhead, so ideally the write load should be low, or localized as in - the London/Paris example above. - - - - Data partitioning is usually handled by application code, though rules - and triggers can be used to keep the read-only data sets current. Slony-I - can also be used in such a setup. While Slony-I replicates only entire - tables, London and Paris can be placed in separate tables, and - inheritance can be used to access both tables using a single table name. - - - - - - Multi-Master Replication Using Query Broadcasting + Query Broadcasting - One way to do multi-master replication is by having a program - intercept every SQL query and send it to all servers. Each - server operates independently. Read-only queries can be sent - to a single server because there is no need for all servers to - process it. + In query broadcasting, a program intercepts every SQL query + and sends it to all servers. Each server operates independently. + Read-only queries can be sent to a single server because there + is no need for all servers to process it. @@ -236,6 +198,22 @@ + Data Partitioning + + + + Data partitioning splits tables into data sets. Each set can + be modified by only one server. For example, data can be + partitioned by offices, e.g. London and Paris, with a server + in each office. If queries combining London and Paris data + are necessary, an application can query both servers, or + master/slave replication can be used to keep a read-only copy + of the other office's data on each server. + + + + + Clustering For Parallel Query Execution -- 2.11.0