| Acknowledgments |
|
xv | |
| Introduction |
|
xvii | |
|
|
|
1 | (12) |
|
The 2 A.M. Alert Notification |
|
|
2 | (2) |
|
|
|
2 | (2) |
|
|
|
4 | (2) |
|
|
|
4 | (2) |
|
|
|
6 | (2) |
|
|
|
6 | (2) |
|
Addressing the Underlying Cause |
|
|
8 | (2) |
|
Rectifying the Problem Correctly |
|
|
9 | (1) |
|
Understanding Replication Issues |
|
|
10 | (1) |
|
|
|
10 | (1) |
|
Configuration Options and Variables |
|
|
10 | (1) |
|
|
|
11 | (2) |
|
2 Diagnosing Common Replication Problems |
|
|
13 | (30) |
|
MySQL Replication Architecture Review |
|
|
14 | (1) |
|
Interpreting Replication Information |
|
|
15 | (12) |
|
|
|
16 | (9) |
|
|
|
25 | (2) |
|
|
|
27 | (6) |
|
Identifying Data Inconsistencies |
|
|
28 | (1) |
|
Identifying Schema Inconsistencies |
|
|
28 | (4) |
|
Causes of Data Inconsistency |
|
|
32 | (1) |
|
Common Replication Errors |
|
|
33 | (2) |
|
|
|
33 | (1) |
|
|
|
33 | (1) |
|
|
|
34 | (1) |
|
Understanding Replication Lag |
|
|
35 | (6) |
|
|
|
36 | (1) |
|
|
|
37 | (1) |
|
Simple Techniques to Improve and Minimize Lag |
|
|
37 | (2) |
|
Advanced Techniques to Improve and Minimize Lag |
|
|
39 | (2) |
|
|
|
41 | (1) |
|
|
|
42 | (1) |
|
3 Improving Standard Replication Features |
|
|
43 | (36) |
|
Extending Asynchronous Behavior |
|
|
44 | (6) |
|
Semisynchronous Replication |
|
|
44 | (5) |
|
|
|
49 | (1) |
|
Securing Replication with SSL |
|
|
50 | (8) |
|
|
|
50 | (8) |
|
|
|
58 | (18) |
|
New and Improved Data Integrity |
|
|
58 | (5) |
|
New Performance Improvements for Replication |
|
|
63 | (5) |
|
New Replication Management Features |
|
|
68 | (8) |
|
Balancing Read and Write Load |
|
|
76 | (1) |
|
|
|
77 | (2) |
|
4 Using Multi-Master Replication |
|
|
79 | (26) |
|
MySQL Replication Failover Capabilities |
|
|
80 | (1) |
|
Active/Passive Multi-Master Replication |
|
|
80 | (20) |
|
Required Multi-Master Configuration Settings |
|
|
81 | (1) |
|
Optional Multi-Master Configuration Settings |
|
|
81 | (1) |
|
Other Configuration Variables to Consider |
|
|
82 | (1) |
|
|
|
82 | (1) |
|
|
|
83 | (3) |
|
Multi-Master Replication Verification |
|
|
86 | (2) |
|
|
|
88 | (5) |
|
Real World Usage Complications |
|
|
93 | (1) |
|
|
|
94 | (6) |
|
Read and Write Load Balancing |
|
|
100 | (1) |
|
|
|
100 | (2) |
|
Other Replication Topologies |
|
|
101 | (1) |
|
Automating High Availability Failovers |
|
|
102 | (1) |
|
|
|
103 | (2) |
|
5 MySQL Replication Tools |
|
|
105 | (50) |
|
|
|
106 | (26) |
|
|
|
106 | (3) |
|
|
|
109 | (7) |
|
MySQL Workbench Utilities |
|
|
116 | (16) |
|
Replication Failover Managers |
|
|
132 | (15) |
|
|
|
133 | (13) |
|
|
|
146 | (1) |
|
|
|
147 | (1) |
|
|
|
147 | (1) |
|
|
|
147 | (2) |
|
Percona Replication Manager (PRM) |
|
|
148 | (1) |
|
|
|
149 | (2) |
|
MySQL Patches and Variants |
|
|
151 | (2) |
|
Independent Community Users |
|
|
151 | (1) |
|
|
|
152 | (1) |
|
|
|
153 | (2) |
|
6 Extending Replication for Practical Needs |
|
|
155 | (52) |
|
Highly Requested Replication Features |
|
|
156 | (1) |
|
|
|
156 | (1) |
|
|
|
157 | (19) |
|
|
|
158 | (1) |
|
|
|
158 | (1) |
|
|
|
159 | (16) |
|
|
|
175 | (1) |
|
|
|
176 | (1) |
|
|
|
176 | (1) |
|
|
|
176 | (27) |
|
|
|
177 | (1) |
|
|
|
177 | (1) |
|
|
|
178 | (1) |
|
Installation with Tungsten Sandbox |
|
|
178 | (8) |
|
Manual Tungsten Installation |
|
|
186 | (10) |
|
Alternative Tungsten Deployments |
|
|
196 | (5) |
|
|
|
201 | (1) |
|
|
|
202 | (1) |
|
|
|
202 | (1) |
|
|
|
203 | (1) |
|
MySQL Replication Listener |
|
|
203 | (1) |
|
|
|
203 | (1) |
|
|
|
204 | (1) |
|
|
|
204 | (1) |
|
|
|
204 | (1) |
|
|
|
205 | (2) |
|
7 MySQL Configuration Options |
|
|
207 | (18) |
|
About MySQL System Variables |
|
|
208 | (1) |
|
|
|
208 | (4) |
|
|
|
212 | (5) |
|
Semisynchronous Replication |
|
|
215 | (1) |
|
|
|
216 | (1) |
|
|
|
217 | (2) |
|
|
|
218 | (1) |
|
|
|
219 | (2) |
|
Universally Unique Identifier (UUID) |
|
|
219 | (1) |
|
|
|
219 | (1) |
|
|
|
220 | (1) |
|
|
|
220 | (1) |
|
Global Transaction Identifier (GTID) |
|
|
220 | (1) |
|
|
|
221 | (1) |
|
SQL Commands and Functions |
|
|
221 | (2) |
|
|
|
222 | (1) |
|
|
|
222 | (1) |
|
Replication Related Functions |
|
|
223 | (1) |
|
|
|
223 | (2) |
|
|
|
225 | (18) |
|
|
|
226 | (2) |
|
|
|
226 | (2) |
|
|
|
228 | (1) |
|
Important MySQL Information |
|
|
228 | (6) |
|
|
|
228 | (1) |
|
|
|
229 | (1) |
|
|
|
229 | (1) |
|
|
|
230 | (1) |
|
|
|
231 | (2) |
|
|
|
233 | (1) |
|
|
|
234 | (7) |
|
Dedicated Monitoring Products |
|
|
235 | (1) |
|
System Monitoring Products |
|
|
235 | (1) |
|
The Implementation of Monitoring |
|
|
236 | (1) |
|
|
|
236 | (2) |
|
|
|
238 | (2) |
|
MySQL Performance Monitor (MPM) |
|
|
240 | (1) |
|
Poor Man's Replication Monitor |
|
|
240 | (1) |
|
Troubleshooting Replication Incidents |
|
|
241 | (1) |
|
|
|
242 | (1) |
|
A MySQL Replication Test Environment |
|
|
243 | (16) |
|
Manual Steps to Configure MySQL Replication |
|
|
244 | (1) |
|
|
|
245 | (4) |
|
MySQL Sandbox Installation |
|
|
245 | (1) |
|
|
|
246 | (1) |
|
Replication Setup with MySQL Sandbox |
|
|
247 | (1) |
|
|
|
248 | (1) |
|
|
|
249 | (6) |
|
|
|
249 | (6) |
|
Testing and Verifying MySQL Replication |
|
|
255 | (3) |
|
|
|
258 | (1) |
| Index |
|
259 | |