MySQL replication is the backbone of the web economy, but it has shortcomings. Tungtsten Replicator, an open source replication engine, takes MySQL replication to the next level with multiple masters, seamless failover, parallel replication.
1. Advanced MySQL
Replication for the
masses
Giuseppe Maxia, QA Director, Continuent, Inc
Facts. And Demos. Possibly fun
1
2. Once Upon A Time,
In The Life Of A
Database
Consultant ...
2
3. The story of a steel
foundry
• Used MySQL databases to store
production monitoring data
• Inserted a zillion records per second.
• Slaves often lagged behind
3
4. transaction
transaction
MySQL transaction
transaction
transaction
DBMS transaction
transaction
transaction
transaction
transaction
transaction
transaction
BINARY LOG
ns act act tio n
tra ansio ns sac ntio
ac ion ion n
ac
nr tr tra aniton
tsa a n csio
nts ct n
rn a o
taa scti
r
trnsa
n
n
tio
ct
tra
tra
REPLICATION
transaction
transaction
MySQL
DBMS
4
5. The story of a shoe
maker
• Had a successful business, spread to a
dozen stores.
• Needed to aggregate the data from the
stores in his headquarters database.
5
6. MySQL
MySQL
DBMS MySQL
DBMS
DBMS
store
store store
MySQL
DBMS
headquarters
6
7. The story of a widgets
seller
• Had a successful business, designed for one
server.
• Products were created in several sites.
• Needed to allow insertions from more
than one master at the time
7
8. MySQL MySQL
DBMS DBMS
master master
MySQL MySQL
DBMS DBMS
master master
8
13. What can it do?
• Easy failover
• Multiple masters
• Multiple sources to a single slave
• Parallel replication
• Replicate to Oracle and PostgreSQL database
13
53. replicator
• It’s the service provider
• You launch it once when you start
• You may restart it when you change config
53
54. trepctl
• Tungsten Replicator ConTroLler
• It’s the driving seat for your replication
• You can start, update, and stop services
• You can get specific info
54