Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why...
Transcript of Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why...
![Page 1: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/1.jpg)
Percona XtraDB Cluster powered by Galera
Peter Zaitsev CEO, Percona
Slide Credits: Vadim Tkachenko Percona University,
Washington,DC Sep 12,2013
![Page 2: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/2.jpg)
This talk
High Availability
Replication
Cluster
Percona XtraDB Cluster
![Page 3: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/3.jpg)
What is HA
Availability
Avail ~ Ability
Ability to Avail
Percona XtraDB Cluster
![Page 4: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/4.jpg)
Availability by redundancy
Percona XtraDB Cluster
![Page 5: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/5.jpg)
Duplicate resources
Percona XtraDB Cluster
![Page 6: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/6.jpg)
Failover
Percona XtraDB Cluster
![Page 7: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/7.jpg)
Probability of failure
Single server: P
Two servers: P/2
X servers: P/X
Percona XtraDB Cluster
![Page 8: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/8.jpg)
Probability of failure
1 2 3 4 5 6 7 8 9 10
Pro
bab
ilit
y o
f fa
ilu
re
N of servers
Percona XtraDB Cluster
![Page 9: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/9.jpg)
Easy ?
Not if we deal with databases
Percona XtraDB Cluster
![Page 10: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/10.jpg)
Database
Percona XtraDB Cluster
![Page 11: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/11.jpg)
Redundancy ?
Percona XtraDB Cluster
![Page 12: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/12.jpg)
Database availability is hard
Service availability
Data availability
Percona XtraDB Cluster
![Page 13: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/13.jpg)
Replication
Percona XtraDB Cluster
![Page 14: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/14.jpg)
Percona XtraDB Cluster
![Page 15: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/15.jpg)
![Page 16: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/16.jpg)
What is wrong with MySQL replication ?
“a”
Percona XtraDB Cluster
![Page 17: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/17.jpg)
What is wrong with MySQL replication ?
“a” in async
Percona XtraDB Cluster
![Page 18: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/18.jpg)
What is wrong with MySQL replication ?
“async”
vs
“sync”
Percona XtraDB Cluster
![Page 19: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/19.jpg)
Async
Percona XtraDB Cluster
![Page 20: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/20.jpg)
Async
Percona XtraDB Cluster
![Page 21: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/21.jpg)
sync
Percona XtraDB Cluster
![Page 22: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/22.jpg)
Didn’t we just reinvent
DRBD ?
Percona XtraDB Cluster
![Page 23: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/23.jpg)
DRBD
Percona XtraDB Cluster
![Page 24: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/24.jpg)
Clustering
Percona XtraDB Cluster
![Page 25: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/25.jpg)
Percona XtraDB Cluster
Free and Open Source
Percona XtraDB Cluster
![Page 26: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/26.jpg)
Percona XtraDB Cluster
Percona XtraDB Cluster
![Page 27: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/27.jpg)
Synchronous or Virtually
synchronous
http://en.wikipedia.org/wiki/Virtual_synchrony
Percona XtraDB Cluster
![Page 28: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/28.jpg)
Virtually synchronous
Percona XtraDB Cluster
![Page 29: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/29.jpg)
synchronous replication
multi-master replication
parallel applying on
slaves
data consistency
automatic node
provisioning
Percona XtraDB Cluster
![Page 30: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/30.jpg)
synchronous replication
multi-master replication
parallel applying on
slaves
data consistency
automatic node
provisioning
Percona XtraDB Cluster
![Page 31: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/31.jpg)
Multi-master: MySQL
Percona XtraDB Cluster
![Page 32: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/32.jpg)
Multi-master: XtraDB Cluster
Percona XtraDB Cluster
![Page 33: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/33.jpg)
synchronous replication
multi-master replication
parallel applying on
slaves
data consistency
automatic node
provisioning
Percona XtraDB Cluster
![Page 34: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/34.jpg)
Parallel apply: MySQL
Percona XtraDB Cluster
![Page 35: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/35.jpg)
Parallel apply: XtraDB Cluster
Percona XtraDB Cluster
![Page 36: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/36.jpg)
synchronous replication
multi-master replication
parallel applying on
slaves
data consistency
automatic node
provisioning
Percona XtraDB Cluster
![Page 37: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/37.jpg)
XtraDB Cluster data consistency
Percona XtraDB Cluster
![Page 38: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/38.jpg)
synchronous replication
multi-master replication
parallel applying on
slaves
data consistency
automatic node
provisioning
Percona XtraDB Cluster
![Page 39: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/39.jpg)
Node provisioning
Percona XtraDB Cluster
![Page 40: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/40.jpg)
CAP theorem
http://en.wikipedia.org/wiki/CAP_theorem
Percona XtraDB Cluster
![Page 41: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/41.jpg)
Pick only TWO
Consistency Node
availability
Partition Tolerance
Percona XtraDB Cluster
![Page 42: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/42.jpg)
Network failure
Percona XtraDB Cluster
![Page 43: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/43.jpg)
MySQL Replication
Percona XtraDB Cluster
Access to all systems -
YES
Data consistency -
NO
![Page 44: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/44.jpg)
XtraDB Cluster
Percona XtraDB Cluster
Access to all systems -
NO
Data consistency -
YES
![Page 45: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/45.jpg)
3 nodes is the minimal
recommended configuration
Percona XtraDB Cluster
![Page 46: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/46.jpg)
Split brain
Percona XtraDB Cluster
Which system to make available
?
![Page 47: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/47.jpg)
Split brain
Percona XtraDB Cluster
But you deal with consequences
You still can have this setup
![Page 48: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/48.jpg)
Choice
Percona XtraDB Cluster
MySQL Replication:
Access to all systems
Data consistency
XtraDB Cluster:
![Page 49: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/49.jpg)
MySQL replication based
MMM
MHA
Flipper
PRM
Percona XtraDB Cluster
![Page 50: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/50.jpg)
Percona XtraDB Cluster
details
Percona XtraDB Cluster
![Page 51: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/51.jpg)
Percona
XtraDB Cluster
Percona Server
WSREP patches
Galera library
Percona XtraDB Cluster
![Page 52: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/52.jpg)
Partnership
Percona
Codership
Percona XtraDB Cluster
![Page 53: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/53.jpg)
Full compatibility with existing
systems
Percona XtraDB Cluster
![Page 54: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/54.jpg)
Minimal efforts to migrate
Percona XtraDB Cluster
![Page 55: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/55.jpg)
Minimal efforts to
return back to MySQL
Percona XtraDB Cluster
![Page 56: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/56.jpg)
So, is this a perfect solution?
Percona XtraDB Cluster
![Page 57: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/57.jpg)
Limitations
Percona XtraDB Cluster
![Page 58: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/58.jpg)
Only InnoDB tables are fully
supported
MyISAM support is limited
Percona XtraDB Cluster
![Page 59: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/59.jpg)
OPTIMISTIC locking for
transactions on different servers
http://en.wikipedia.org/wiki/Optimistic_concurrency_cont
rol
Percona XtraDB Cluster
![Page 60: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/60.jpg)
Traditional locking
Percona XtraDB Cluster
![Page 61: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/61.jpg)
Optimistic locking
Percona XtraDB Cluster
![Page 62: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/62.jpg)
The write performance is
limited by weakest node
Percona XtraDB Cluster
![Page 63: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/63.jpg)
Write performance
Percona XtraDB Cluster
![Page 64: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/64.jpg)
For write intensive applications
there could be datasize limit per
node
Not physical but logical
Percona XtraDB Cluster
![Page 65: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/65.jpg)
Join process. Step 1
Percona XtraDB Cluster
![Page 66: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/66.jpg)
Join process. Step 2
Percona XtraDB Cluster
![Page 67: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/67.jpg)
Join process: step 3
Percona XtraDB Cluster
![Page 68: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/68.jpg)
This is software + hardware
solution
Percona XtraDB Cluster
![Page 69: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/69.jpg)
InnoDB write performance
Percona XtraDB Cluster
![Page 70: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/70.jpg)
InnoDB performance + ACID
Percona XtraDB Cluster
![Page 71: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/71.jpg)
Cluster performance
•10 GigE
•Infiniband Network
•SSD
•PCI-e Flash Storage
Percona XtraDB Cluster
![Page 72: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/72.jpg)
Join process
Percona XtraDB Cluster
![Page 73: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/73.jpg)
State Transfer
Percona XtraDB Cluster
Full data SST
New node
Node long time
disconnected
Incremental IST
Node disconnected
short time
![Page 74: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/74.jpg)
Snapshot State Transfer
Percona XtraDB Cluster
Mysqldump
Small databases
Rsync
Donor disconnected for copy time
faster
XtraBackup
Donor disconnected for short time
slower
![Page 75: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/75.jpg)
Incremental State Transfer
Percona XtraDB Cluster
Node was in cluster
Disconnected for
maintenance
Node Crashed
![Page 76: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/76.jpg)
Scaleability
Percona XtraDB Cluster
![Page 77: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/77.jpg)
Scaleability
Scale ~ Ability
Ability to Scale
Percona XtraDB Cluster
![Page 78: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/78.jpg)
Scaleability is similar to availability
Percona XtraDB Cluster
![Page 79: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/79.jpg)
XtraDB Cluster: Reads scalability is easy
Percona XtraDB Cluster
![Page 80: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/80.jpg)
Write scalability is complicated
Percona XtraDB Cluster
![Page 81: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/81.jpg)
N servers scale to :
Percona XtraDB Cluster
•N factor 100% reads
•… …
•N/2 factor 50/50
•… …
•1 or const 100% writes
![Page 82: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/82.jpg)
10 servers scale to :
Percona XtraDB Cluster
• 1 server: 100 q/s
• 10 servers: 1000 q/s 100% reads
• 1 server: 100 q/s
• 10 servers: 500 q/s 50/50
• 1 server: 100 q/s
• 10 servers: 100 q/s (can be more)
100% writes
![Page 83: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/83.jpg)
FAQ
Questions I am asked
Percona XtraDB Cluster
![Page 84: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/84.jpg)
It looks so easy. Why did
not you implement it earlier?
It is not easy.
Computer science of group communication
and distributed transactions.
Credits to Codership Oy
Percona XtraDB Cluster
![Page 85: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/85.jpg)
How fast is it?
Reasonably fast.
Percona XtraDB Cluster
![Page 86: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/86.jpg)
Can I replicate XtraDB
Cluster to MySQL
Replication?
Yes
Percona XtraDB Cluster
![Page 87: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/87.jpg)
Percona XtraDB Cluster
Async MySQL Replication
![Page 88: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/88.jpg)
Would I install it on a
production system? gutefrage.net
Germany’s No. 3 Web Destination
http://www.percona.com/about-us/pressreleases/gutefragenet-standardizes-percona-xtradb-cluster
95% reads
Percona XtraDB Cluster
![Page 89: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/89.jpg)
How it is compared to
MySQL Cluster?
It is different
Percona XtraDB Cluster
![Page 90: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/90.jpg)
XtraDB
Cluster
MySQL
Cluster
Easy to migrate Easy to use Cloud / EC2 Changes in an
application Write scaling 99.999%
Percona XtraDB Cluster
![Page 91: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/91.jpg)
Resources
• http://www.percona.com/software/percona-xtradb-cluster/
• http://www.codership.com/wiki/doku.php
• Virtual synchrony
• http://en.wikipedia.org/wiki/Virtual_synchrony
• CAP Theorem
• http://en.wikipedia.org/wiki/CAP_theorem
• Optimistic locking
• http://en.wikipedia.org/wiki/Optimistic_concurrency_control
Percona XtraDB Cluster
![Page 92: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/92.jpg)
Credits
• WSREP patches and Galera library is developed by
Codership Oy
Percona XtraDB Cluster
![Page 93: Percona XtraDB Cluster · FAQ Questions I am asked Percona XtraDB Cluster . It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication](https://reader035.fdocuments.in/reader035/viewer/2022062509/610a6def6c2dcf2a731d650b/html5/thumbnails/93.jpg)
Thank you!
Questions ?
You can try Percona XtraDB Cluster today!
Percona XtraDB Cluster