SlideShare a Scribd company logo
1 of 90
Download to read offline
Percona XtraDB Cluster
Kenny Gryp
@gryp

07 03 2017 1
Agenda
• Default asynchronous MySQL replication
• Percona XtraDB Cluster:
• Introduction / Features / Load Balancing
• Use Cases:
• High Availability / WAN Replication / Read Scaling
• Limitations
2
Percona
• Percona is the oldest and largest independent
MySQL Support, Consulting, Remote DBA,
Training, and Software Development company
with a global, 24x7 staff of over 100 serving more
than 2,000 customers in 50+ countries since 2006
• Our contributions to the MySQL community include:
• Percona Server for MySQL, Percona XtraDB Cluster
• Percona Server for MongoDB
• Percona XtraBackup: online backup
• Percona Toolkit
• Percona Monitoring & Management…
3
Agenda
• Default asynchronous MySQL
Replication
• Percona XtraDB Cluster:
• Introduction / Features / Load Balancing
• Use Cases:
• High Availability / WAN Replication / Read Scaling
• Limitations
4
MySQL Replication
If your HA is based on MySQL Replication -
You may be playing a dangerous game !
5
Traditional Replication Approach
Server 1 Server 2
replication stream
“master” “slave”
6
MySQL Replication 7
1 2
3 4
5 6
• Common Topologies:
• Master-Master (Only 1 active master)
• 1 or more layers of replication
• Slaves can be used for reads:
• asynchronous, stale data is the rule
• data loss possible (*semi-sync)
MySQL Replication 8
1 2
3 4
5 6
• non-trivial:
• external monitoring
• scripts for failover
• add node == restore backup
• much better in 

MySQL 5.6: GTIDs
MySQL Replication
1 2
3 4
5 6
9
Agenda
• Default asynchronous MySQL Replication
• Percona XtraDB Cluster:
• Introduction / Features / Load Balancing
• Use Cases:
• High Availability / WAN Replication / Read Scaling
• Limitations
10
11Data Centric
DATA
Server 1 Server 2 Server 3 Server N...
12Percona XtraDB Cluster
13Percona XtraDB Cluster
• All nodes have a full copy of the data
• Every node is equal
• No central management, no SPOF
14Understanding Galera
38
The cluster can be
seen as a meeting !
PXC (Galera cluster) is a meeting
bfb912e5-f560-11e2-0800-1eefab05e57d
15
PXC (Galera cluster) is a meeting
bfb912e5-f560-11e2-0800-1eefab05e57d
16
PXC (Galera cluster) is a meeting
bfb912e5-f560-11e2-0800-1eefab05e57d
17
PXC (Galera cluster) is a meeting
bfb912e5-f560-11e2-0800-1eefab05e57d
18
PXC (Galera cluster) is a meeting
bfb912e5-f560-11e2-0800-1eefab05e57d
19
PXC (Galera cluster) is a meeting
bfb912e5-f560-11e2-0800-1eefab05e57d
20
PXC (Galera cluster) is a meeting
bfb912e5-f560-11e2-0800-1eefab05e57d
21
PXC (Galera cluster) is a meeting 22
PXC (Galera cluster) is a meeting
???
23
PXC (Galera cluster) is a meeting
4fd8824d-ad5b-11e2-0800-73d6929be5cf
New meeting !
24
What is Percona XtraDB Cluster ?
• Percona Server
• + WSREP patches
• + Galera library
• + Utilities (init, SST and cluster check
scripts)
• + Percona Changes to Galera
25
26
• This is a free open source solution, Percona Server
is a MySQL alternative which offers breakthrough
performance, scalability, features, and
instrumentation. Self-tuning algorithms and support
for extremely high-performance hardware make it the
clear choice for organisations that demand excellent
performance and reliability from their MySQL
database server.
Percona Server
WSREP and Galera
• WSREP API is a project to develop generic
replication plugin interface for databases (WriteSet
Replication)
• Galera is a wsrep provider that implements multi-
master, synchronous replication
• Other 'Similar' Implementations:
• MariaDB Galera Cluster
• Galera Cluster For MySQL
27
What is Percona XtraDB Cluster ?
Full
compatibility
with existing
systems
28
What is Percona XtraDB Cluster ?
Minimal efforts
to migrate
29
What is Percona XtraDB Cluster ?
Minimal efforts
to return back
to MySQL
30
31Features
• 'Synchronous' Replication
• Multi Master
• Parallel Applying
• Quorum Based
• Certification/Optimistic Locking
• Automatic Node Provisioning
• PXC Specific Features
32Features
• 'Synchronous' Replication
• Multi Master
• Parallel Applying
• Quorum Based
• Certification/Optimistic Locking
• Automatic Node Provisioning
• PXC Specific Features
33(Virtual) Synchronous Replication
• Writesets (transactions) are replicated to all
available nodes on commit (and queued
on each)
• Writesets are individually “certified” on
every node, deterministically.Either it is
committed on all nodes or no node at all
(NO 2PC)
• Queued writesets are applied on those
nodes independently and asynchronously
• Flow Control avoids too much ‘lag’
34(Virtual) Synchronous Replication
35(Virtual) Synchronous Replication
• Reads can read old data
• Flow Control (by default 16 trx) avoids lag
• wsrep_sync_wait=1 can be enabled to
ensure full synchronous reads
• Latency: writes are fast, only at COMMIT,
communication with other nodes happen
36Stale Reads
37Latency
38Features
• 'Synchronous' Replication
• Multi Master
• Parallel Applying
• Quorum Based
• Certification/Optimistic Locking
• Automatic Node Provisioning
• PXC Specific Features
Multi-Master Replication
• You can write to any node in your cluster*
• Writes are ordered inside the cluster
writes
writes
writes
39
40Features
• 'Synchronous' Replication
• Multi Master
• Parallel Applying
• Quorum Based
• Certification/Optimistic Locking
• Automatic Node Provisioning
• PXC Specific Features
Parallel Replication
• Standard MySQL
Application 

writes N threads
Apply 1 thread
(MySQL 5.6:
max 1 thread
per schema,
5.7: Interval Based)
41
Parallel Replication
• PXC / Galera
Application 

writes N threads Apply M threads 

(wsrep_slave_threads)
42
43Features
• 'Synchronous' Replication
• Multi Master
• Parallel Applying
• Quorum Based
• Certification/Optimistic Locking
• Automatic Node Provisioning
• PXC Specific Features
Quorum Based
• If a node does not see more than 50% of the total
amount of nodes: reads/writes are not accepted.
• Split brain is prevented
• This requires at least 3 nodes to be effective
• a node can be an arbitrator (garbd), joining the
communication, but not having any MySQL
running
• Can be disabled (but be warned!)
44
• Loss of connectivity
Quorum Based 45
Network Problem
Does not accept Reads & Writes
• 4 Nodes
• 2 DC
Quorum Based 46
• Default quorum configuration:

4 Nodes, 0 Nodes have quorum
Quorum Based 47
Network Problem
• With garbd Arbitrator:
Quorum Based Arbitrator 48
Network Problem
garbd
(no data)
49Features
• 'Synchronous' Replication
• Multi Master
• Parallel Applying
• Quorum Based
• Certification/Optimistic Locking
• Automatic Node Provisioning
• PXC Specific Features
50Certification
51Optimistic Locking
• Communication to the other nodes of the
cluster only happens during COMMIT, this
affects locking behavior.
• Optimistic Locking is done:
• InnoDB Locking happens local to the
node
• During COMMIT/Certification, the other
nodes bring deadlocks
52Optimistic Locking
• Some Characteristics:
• also COMMIT and SELECT’s can fail on
deadlock
• Might require application changes:

Not all applications handle this properly
53Traditional InnoDB Locking
system 1
Transaction 1
Transaction 2
BEGIN
Transaction1
BEGIN
UPDATE t WHERE id=14
UPDATE t WHERE id=14
...
COMMIT
Waits on COMMIT in trx 1
54InnoDB Locking With PXC
system 1
Transaction 1
Transaction 2
BEGIN
Transaction1
BEGIN
UPDATE t WHERE id=14
UPDATE t WHERE id=14
...
COMMIT
DML,COMMIT or SELECT
ERROR due row conflict
system 2
...
55InnoDB Locking With PXC
system 1
Transaction 1
Transaction 2
BEGIN
Transaction1
BEGIN
UPDATE t WHERE id=14
UPDATE t WHERE id=14
...
COMMIT
COMMIT
ERROR due row conflict
system 2
...ERROR 1213 (40001): Deadlock found when trying
to get lock; try restarting transaction
56Optimistic Locking
57Features
• 'Synchronous' Replication
• Multi Master
• Parallel Applying
• Quorum Based
• Certification/Optimistic Locking
• Automatic Node Provisioning
• PXC Specific Features
Automatic Node Provisioning
• When a node joins the cluster:
• the data is automatically copied
• when finished: the new node is automatically
ready and accepting connections
• 2 different types of joining:
– SST (state snapshot transfer): full copy of the
data
– IST (incremental state transfer): send only the
missing writesets (if available)
58
StateTransfer Summary
Full data
SST
Incremental
IST
New node
Node long
time
disconnected
Node
disconnected
short time
59
Snapshot State Transfer
mysqldump
Small
databases
rsync
Donor
disconnected
for copy time
Faster
XtraBackup
Donor
available
Slower
60
Incremental State Transfer
Node was
in the cluster
Disconnected
for maintenance
Node
crashed
61
Automatic Node Provisioning
writes
writes
writes
new node joining
data is copied via SST or IST
62
Automatic Node Provisioning
writes
writes
writes
new node joiningwhen ready
writes
63
64Features
• 'Synchronous' Replication
• Multi Master
• Parallel Applying
• Quorum Based
• Certification/Optimistic Locking
• Automatic Node Provisioning
• PXC Specific Features
65PXC Specific Features
• PXC Strict mode
• Extended PFS support
• ProxySQL integration
• SST/XtraBackup Changes
• Bug-Fixes
66PXC Strict Mode
Prevent experimental/unsupported features:
• Only Allow InnoDB Operations
• Prevent Changing binlog_format!=ROW
• Require Primary Key on tables
• Disable Unsupported Features:
• GET_LOCK, LOCK TABLES, CTAS
• FLUSH TABLES <tables> WITH READ LOCK
• tx_isolation=SERIALIZABLE
67PERFORMANCE_SCHEMA Support
• Improve troubleshooting/debugging using
Performance Schema
• Threads
• Files
• Stages
• Mutexes
• https://www.percona.com/live/plam16/sessions/exploring-
percona-xtradb-cluster-using-performance-schema
• https://www.percona.com/doc/percona-xtradb-cluster/5.7/
manual/performance_schema_instrumentation.html
68ProxySQL
• Layer 7 MySQL Load Balancer
• Open Source
• R/W Splitting
• Connection management
• Transparent Reconnect
• Query Caching (TTL)
• 'Sharding' (User, Schema or Regex)
69ProxySQL & PXC Integration
• PXC includes ProxySQL as load balancer:
• proxysql-admin
• ProxySQL schedulers:
• Health Checks
• Reconfigures Nodes
• PXC Maintenance Mode
• Tell Load Balancer to rebalance load
ProxySQL
• Different possible setups:
• be a dedicated layer
• integrated at application layer
• integrated at database layer
70
Dedicated shared ProxySQL
application server 1 application server 2 application server 3
PXC node 1 PXC node 2 PXC node 3
ProxySQL
71
Dedicated shared ProxySQL
application server 1 application server 2 application server 3
PXC node 1 PXC node 2 PXC node 3
ProxySQL
72
ProxySQL on application side
application server 1 application server 2 application server 3
PXC node 1 PXC node 2 PXC node 3
73
ProxySQL ProxySQL ProxySQL
ProxySQL 'Endless' Possibilities
application server 1 application server 2 application server 3
PXC node 1 PXC node 2 PXC node 3
74
ProxySQL ProxySQL ProxySQL
ProxySQL ProxySQL
75Load Balancers Alternatives
• ProxySQL (L7)
• HAProxy (L4)
• ScaleArc (L7, $$)
• MySQL Router (L7, quite new)
• MaxScale (L7, $ BS-License)
Agenda
• Default asynchronous MySQL Replication
• Percona XtraDB Cluster:
• Introduction / Features / Load Balancing
• Use Cases:
• High Availability / WAN Replication / Read
Scaling
• Limitations
76
77Use Cases
• High Availability
• WAN Replication
• Read Scaling
High Availability 78
• Each node is the same (no master-slave)
• Consistency ensured, no data loss
• Quorum avoids split-brain
• Cluster issues are immediately handled on
• no ‘failover’ necessary
• no external scripts, no SPOF
79WAN replication
MySQL
MySQL
MySQL
• No impact on reads
• No impact within a trx
• Communication only happens during

COMMIT (or if autocommit=1)
• Use higher timeouts and

send windows
• Beware of increased latency
• Within EUROPE EC2
• COMMIT: 0.005100 sec
• EUROPE <-> JAPAN EC2
• COMMIT: 0.275642 sec
80WAN replication - latency
MySQL
MySQL
MySQL
81
WAN replication with MySQL
asynchronous replication
MySQL
MySQL
MySQL
• You can mix both types of replication
• Good option on slow WAN link
• Requires more nodes
MySQL
MySQL
MySQL
MySQL
MySQL MySQL
Cluster Segmentation - WAN 82
83Read Scaling
• No Read/Write Splitting necessary in App.
• Write to all nodes(*)
Example Architecture
Application Layer
ProxySQL
84
PXC
Agenda
• Default asynchronous MySQL Replication
• Percona XtraDB Cluster:
• Introduction / Features / Load Balancing
• Use Cases:
• High Availability / WAN Replication / Read Scaling
• Limitations
85
86Limitations
• Supports only InnoDB tables
• MyISAM support will most likely stay in
alpha.
• The weakest node limits write
performance
• All tables must have a Primary Key!
87Limitations
• Large Transactions are not
recommended if you write on all nodes
simultaneously
• Long Running Transactions
• If the workload has a hotspot then
(frequently writing to the same rows
across multiple nodes)
• Solution: Write to only 1 node
88Limitations
• By Default DDL is done in TOI
• Blocks ALL writes during schema change
• For certain operations:

wsrep_osu_method=RSU
• pt-online-schema-change
Summary
• Default asynchronous MySQL Replication
• Percona XtraDB Cluster:
• Introduction / Features / Load Balancing
• Use Cases:
• High Availability / WAN Replication / Read Scaling
• Limitations
89
90Resources
• Percona XtraDB Cluster website: 

http://www.percona.com/software/percona-xtradb-cluster/
• PXC articles on Percona Blog: 

https://www.percona.com/blog/category/percona-xtradb-cluster/
• Slideshare: 

https://www.slideshare.net/Grypyrg/pxc-introduction-34774802
Questions?
Kenny Gryp - @gryp

More Related Content

What's hot

MariaDB MaxScale
MariaDB MaxScaleMariaDB MaxScale
MariaDB MaxScaleMariaDB plc
 
ProxySQL High Availability (Clustering)
ProxySQL High Availability (Clustering)ProxySQL High Availability (Clustering)
ProxySQL High Availability (Clustering)Mydbops
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group ReplicationUlf Wendel
 
HandsOn ProxySQL Tutorial - PLSC18
HandsOn ProxySQL Tutorial - PLSC18HandsOn ProxySQL Tutorial - PLSC18
HandsOn ProxySQL Tutorial - PLSC18Derek Downey
 
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Wars of MySQL Cluster ( InnoDB Cluster VS Galera ) Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Wars of MySQL Cluster ( InnoDB Cluster VS Galera ) Mydbops
 
Proxysql sharding
Proxysql shardingProxysql sharding
Proxysql shardingMarco Tusa
 
ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016Derek Downey
 
ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)YoungHeon (Roy) Kim
 
Maxscale 소개 1.1.1
Maxscale 소개 1.1.1Maxscale 소개 1.1.1
Maxscale 소개 1.1.1NeoClova
 
The Full MySQL and MariaDB Parallel Replication Tutorial
The Full MySQL and MariaDB Parallel Replication TutorialThe Full MySQL and MariaDB Parallel Replication Tutorial
The Full MySQL and MariaDB Parallel Replication TutorialJean-François Gagné
 
Maria db 이중화구성_고민하기
Maria db 이중화구성_고민하기Maria db 이중화구성_고민하기
Maria db 이중화구성_고민하기NeoClova
 
How Scylla Manager Handles Backups
How Scylla Manager Handles BackupsHow Scylla Manager Handles Backups
How Scylla Manager Handles BackupsScyllaDB
 
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...Jean-François Gagné
 
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docxKeepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docxNeoClova
 
Galera explained 3
Galera explained 3Galera explained 3
Galera explained 3Marco Tusa
 
[2018] MySQL 이중화 진화기
[2018] MySQL 이중화 진화기[2018] MySQL 이중화 진화기
[2018] MySQL 이중화 진화기NHN FORWARD
 
MongoDB WiredTiger Internals: Journey To Transactions
MongoDB WiredTiger Internals: Journey To TransactionsMongoDB WiredTiger Internals: Journey To Transactions
MongoDB WiredTiger Internals: Journey To TransactionsMydbops
 
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11Kenny Gryp
 
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)Jean-François Gagné
 

What's hot (20)

MariaDB MaxScale
MariaDB MaxScaleMariaDB MaxScale
MariaDB MaxScale
 
ProxySQL High Availability (Clustering)
ProxySQL High Availability (Clustering)ProxySQL High Availability (Clustering)
ProxySQL High Availability (Clustering)
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group Replication
 
HandsOn ProxySQL Tutorial - PLSC18
HandsOn ProxySQL Tutorial - PLSC18HandsOn ProxySQL Tutorial - PLSC18
HandsOn ProxySQL Tutorial - PLSC18
 
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Wars of MySQL Cluster ( InnoDB Cluster VS Galera ) Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
 
Proxysql sharding
Proxysql shardingProxysql sharding
Proxysql sharding
 
ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016
 
ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)
 
Introduction to Galera Cluster
Introduction to Galera ClusterIntroduction to Galera Cluster
Introduction to Galera Cluster
 
Maxscale 소개 1.1.1
Maxscale 소개 1.1.1Maxscale 소개 1.1.1
Maxscale 소개 1.1.1
 
The Full MySQL and MariaDB Parallel Replication Tutorial
The Full MySQL and MariaDB Parallel Replication TutorialThe Full MySQL and MariaDB Parallel Replication Tutorial
The Full MySQL and MariaDB Parallel Replication Tutorial
 
Maria db 이중화구성_고민하기
Maria db 이중화구성_고민하기Maria db 이중화구성_고민하기
Maria db 이중화구성_고민하기
 
How Scylla Manager Handles Backups
How Scylla Manager Handles BackupsHow Scylla Manager Handles Backups
How Scylla Manager Handles Backups
 
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
 
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docxKeepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
 
Galera explained 3
Galera explained 3Galera explained 3
Galera explained 3
 
[2018] MySQL 이중화 진화기
[2018] MySQL 이중화 진화기[2018] MySQL 이중화 진화기
[2018] MySQL 이중화 진화기
 
MongoDB WiredTiger Internals: Journey To Transactions
MongoDB WiredTiger Internals: Journey To TransactionsMongoDB WiredTiger Internals: Journey To Transactions
MongoDB WiredTiger Internals: Journey To Transactions
 
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
 
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)
 

Viewers also liked

Percona XtraDB Cluster SF Meetup
Percona XtraDB Cluster SF MeetupPercona XtraDB Cluster SF Meetup
Percona XtraDB Cluster SF MeetupVadim Tkachenko
 
MySQL Group Replication - HandsOn Tutorial
MySQL Group Replication - HandsOn TutorialMySQL Group Replication - HandsOn Tutorial
MySQL Group Replication - HandsOn TutorialKenny Gryp
 
Multi Source Replication With MySQL 5.7 @ Verisure
Multi Source Replication With MySQL 5.7 @ VerisureMulti Source Replication With MySQL 5.7 @ Verisure
Multi Source Replication With MySQL 5.7 @ VerisureKenny Gryp
 
MySQL::Replication (Melbourne Perl Mongers 2011-07)
MySQL::Replication (Melbourne Perl Mongers 2011-07)MySQL::Replication (Melbourne Perl Mongers 2011-07)
MySQL::Replication (Melbourne Perl Mongers 2011-07)Alfie John
 
Percona Live 2012PPT: introduction-to-mysql-replication
Percona Live 2012PPT: introduction-to-mysql-replicationPercona Live 2012PPT: introduction-to-mysql-replication
Percona Live 2012PPT: introduction-to-mysql-replicationmysqlops
 
NodeJS Microservices, Built it Now, Scale it Later!
NodeJS Microservices, Built it Now, Scale it Later!NodeJS Microservices, Built it Now, Scale it Later!
NodeJS Microservices, Built it Now, Scale it Later!Lalit Shandilya
 
Writing Test Cases with PHPUnit
Writing Test Cases with PHPUnitWriting Test Cases with PHPUnit
Writing Test Cases with PHPUnitShouvik Chatterjee
 
MySQL Cluster performance best practices
MySQL Cluster performance best practicesMySQL Cluster performance best practices
MySQL Cluster performance best practicesMat Keep
 
Php psr standard 2014 01-22
Php psr standard 2014 01-22Php psr standard 2014 01-22
Php psr standard 2014 01-22Võ Duy Tuấn
 
[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke Kajiyama
[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke Kajiyama[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke Kajiyama
[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke KajiyamaInsight Technology, Inc.
 
AWSとAnsibleで実践!プロビジョニング入門‐Lamp+Laravel-
AWSとAnsibleで実践!プロビジョニング入門‐Lamp+Laravel-AWSとAnsibleで実践!プロビジョニング入門‐Lamp+Laravel-
AWSとAnsibleで実践!プロビジョニング入門‐Lamp+Laravel-靖 小田島
 
Ansible with AWS
Ansible with AWSAnsible with AWS
Ansible with AWSAllan Denot
 
Spider DeNA Technology Seminar #2
Spider DeNA Technology Seminar #2Spider DeNA Technology Seminar #2
Spider DeNA Technology Seminar #2Kentoku
 
Zabbix+group replication
Zabbix+group replicationZabbix+group replication
Zabbix+group replicationbri nger
 
Scale with Microservices
Scale with MicroservicesScale with Microservices
Scale with MicroservicesVõ Duy Tuấn
 
Microservices and docker
Microservices and dockerMicroservices and docker
Microservices and dockerVõ Duy Tuấn
 
Sharding and Scale-out using MySQL Fabric
Sharding and Scale-out using MySQL FabricSharding and Scale-out using MySQL Fabric
Sharding and Scale-out using MySQL FabricMats Kindahl
 
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
Implementing Mobile Reports in SQL Sserver 2016 Reporting ServicesImplementing Mobile Reports in SQL Sserver 2016 Reporting Services
Implementing Mobile Reports in SQL Sserver 2016 Reporting ServicesAntonios Chatzipavlis
 
Node Architecture Implications for In-Memory Data Analytics on Scale-in Clusters
Node Architecture Implications for In-Memory Data Analytics on Scale-in ClustersNode Architecture Implications for In-Memory Data Analytics on Scale-in Clusters
Node Architecture Implications for In-Memory Data Analytics on Scale-in ClustersAhsan Javed Awan
 

Viewers also liked (20)

Percona XtraDB Cluster SF Meetup
Percona XtraDB Cluster SF MeetupPercona XtraDB Cluster SF Meetup
Percona XtraDB Cluster SF Meetup
 
MySQL Group Replication - HandsOn Tutorial
MySQL Group Replication - HandsOn TutorialMySQL Group Replication - HandsOn Tutorial
MySQL Group Replication - HandsOn Tutorial
 
Multi Source Replication With MySQL 5.7 @ Verisure
Multi Source Replication With MySQL 5.7 @ VerisureMulti Source Replication With MySQL 5.7 @ Verisure
Multi Source Replication With MySQL 5.7 @ Verisure
 
MySQL::Replication (Melbourne Perl Mongers 2011-07)
MySQL::Replication (Melbourne Perl Mongers 2011-07)MySQL::Replication (Melbourne Perl Mongers 2011-07)
MySQL::Replication (Melbourne Perl Mongers 2011-07)
 
Percona Live 2012PPT: introduction-to-mysql-replication
Percona Live 2012PPT: introduction-to-mysql-replicationPercona Live 2012PPT: introduction-to-mysql-replication
Percona Live 2012PPT: introduction-to-mysql-replication
 
NodeJS Microservices, Built it Now, Scale it Later!
NodeJS Microservices, Built it Now, Scale it Later!NodeJS Microservices, Built it Now, Scale it Later!
NodeJS Microservices, Built it Now, Scale it Later!
 
Writing Test Cases with PHPUnit
Writing Test Cases with PHPUnitWriting Test Cases with PHPUnit
Writing Test Cases with PHPUnit
 
MySQL Cluster performance best practices
MySQL Cluster performance best practicesMySQL Cluster performance best practices
MySQL Cluster performance best practices
 
Php psr standard 2014 01-22
Php psr standard 2014 01-22Php psr standard 2014 01-22
Php psr standard 2014 01-22
 
[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke Kajiyama
[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke Kajiyama[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke Kajiyama
[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke Kajiyama
 
React introduction
React introductionReact introduction
React introduction
 
AWSとAnsibleで実践!プロビジョニング入門‐Lamp+Laravel-
AWSとAnsibleで実践!プロビジョニング入門‐Lamp+Laravel-AWSとAnsibleで実践!プロビジョニング入門‐Lamp+Laravel-
AWSとAnsibleで実践!プロビジョニング入門‐Lamp+Laravel-
 
Ansible with AWS
Ansible with AWSAnsible with AWS
Ansible with AWS
 
Spider DeNA Technology Seminar #2
Spider DeNA Technology Seminar #2Spider DeNA Technology Seminar #2
Spider DeNA Technology Seminar #2
 
Zabbix+group replication
Zabbix+group replicationZabbix+group replication
Zabbix+group replication
 
Scale with Microservices
Scale with MicroservicesScale with Microservices
Scale with Microservices
 
Microservices and docker
Microservices and dockerMicroservices and docker
Microservices and docker
 
Sharding and Scale-out using MySQL Fabric
Sharding and Scale-out using MySQL FabricSharding and Scale-out using MySQL Fabric
Sharding and Scale-out using MySQL Fabric
 
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
Implementing Mobile Reports in SQL Sserver 2016 Reporting ServicesImplementing Mobile Reports in SQL Sserver 2016 Reporting Services
Implementing Mobile Reports in SQL Sserver 2016 Reporting Services
 
Node Architecture Implications for In-Memory Data Analytics on Scale-in Clusters
Node Architecture Implications for In-Memory Data Analytics on Scale-in ClustersNode Architecture Implications for In-Memory Data Analytics on Scale-in Clusters
Node Architecture Implications for In-Memory Data Analytics on Scale-in Clusters
 

Similar to Percona XtraDB Cluster

Percon XtraDB Cluster in a nutshell
Percon XtraDB Cluster in a nutshellPercon XtraDB Cluster in a nutshell
Percon XtraDB Cluster in a nutshellFrederic Descamps
 
Buytaert kris my_sql-pacemaker
Buytaert kris my_sql-pacemakerBuytaert kris my_sql-pacemaker
Buytaert kris my_sql-pacemakerkuchinskaya
 
Infrastructure review - Shining a light on the Black Box
Infrastructure review - Shining a light on the Black BoxInfrastructure review - Shining a light on the Black Box
Infrastructure review - Shining a light on the Black BoxMiklos Szel
 
CPU Caches - Jamie Allen
CPU Caches - Jamie AllenCPU Caches - Jamie Allen
CPU Caches - Jamie Allenjaxconf
 
Open stack ha design & deployment kilo
Open stack ha design & deployment   kiloOpen stack ha design & deployment   kilo
Open stack ha design & deployment kiloSteven Li
 
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...Continuent
 
Call me maybe: Jepsen and flaky networks
Call me maybe: Jepsen and flaky networksCall me maybe: Jepsen and flaky networks
Call me maybe: Jepsen and flaky networksShalin Shekhar Mangar
 
Fastsocket Linxiaofeng
Fastsocket LinxiaofengFastsocket Linxiaofeng
Fastsocket LinxiaofengMichael Zhang
 
Migrating to XtraDB Cluster
Migrating to XtraDB ClusterMigrating to XtraDB Cluster
Migrating to XtraDB Clusterpercona2013
 
High performace network of Cloud Native Taiwan User Group
High performace network of Cloud Native Taiwan User GroupHigh performace network of Cloud Native Taiwan User Group
High performace network of Cloud Native Taiwan User GroupHungWei Chiu
 
Galera cluster for high availability
Galera cluster for high availability Galera cluster for high availability
Galera cluster for high availability Mydbops
 
Percona XtraDB 集群文档
Percona XtraDB 集群文档Percona XtraDB 集群文档
Percona XtraDB 集群文档YUCHENG HU
 
Racsig rac internals
Racsig rac internalsRacsig rac internals
Racsig rac internalspv_narayanan
 
Migrating to XtraDB Cluster
Migrating to XtraDB ClusterMigrating to XtraDB Cluster
Migrating to XtraDB Clusterpercona2013
 
VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld
 
MySQL Replication: Pros and Cons
MySQL Replication: Pros and ConsMySQL Replication: Pros and Cons
MySQL Replication: Pros and ConsRachel Li
 

Similar to Percona XtraDB Cluster (20)

Oss4b - pxc introduction
Oss4b   - pxc introductionOss4b   - pxc introduction
Oss4b - pxc introduction
 
Percon XtraDB Cluster in a nutshell
Percon XtraDB Cluster in a nutshellPercon XtraDB Cluster in a nutshell
Percon XtraDB Cluster in a nutshell
 
Buytaert kris my_sql-pacemaker
Buytaert kris my_sql-pacemakerBuytaert kris my_sql-pacemaker
Buytaert kris my_sql-pacemaker
 
Infrastructure review - Shining a light on the Black Box
Infrastructure review - Shining a light on the Black BoxInfrastructure review - Shining a light on the Black Box
Infrastructure review - Shining a light on the Black Box
 
Cpu Caches
Cpu CachesCpu Caches
Cpu Caches
 
CPU Caches - Jamie Allen
CPU Caches - Jamie AllenCPU Caches - Jamie Allen
CPU Caches - Jamie Allen
 
Open stack ha design & deployment kilo
Open stack ha design & deployment   kiloOpen stack ha design & deployment   kilo
Open stack ha design & deployment kilo
 
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
 
Call me maybe: Jepsen and flaky networks
Call me maybe: Jepsen and flaky networksCall me maybe: Jepsen and flaky networks
Call me maybe: Jepsen and flaky networks
 
Fastsocket Linxiaofeng
Fastsocket LinxiaofengFastsocket Linxiaofeng
Fastsocket Linxiaofeng
 
Migrating to XtraDB Cluster
Migrating to XtraDB ClusterMigrating to XtraDB Cluster
Migrating to XtraDB Cluster
 
pps Matters
pps Matterspps Matters
pps Matters
 
BigData Developers MeetUp
BigData Developers MeetUpBigData Developers MeetUp
BigData Developers MeetUp
 
High performace network of Cloud Native Taiwan User Group
High performace network of Cloud Native Taiwan User GroupHigh performace network of Cloud Native Taiwan User Group
High performace network of Cloud Native Taiwan User Group
 
Galera cluster for high availability
Galera cluster for high availability Galera cluster for high availability
Galera cluster for high availability
 
Percona XtraDB 集群文档
Percona XtraDB 集群文档Percona XtraDB 集群文档
Percona XtraDB 集群文档
 
Racsig rac internals
Racsig rac internalsRacsig rac internals
Racsig rac internals
 
Migrating to XtraDB Cluster
Migrating to XtraDB ClusterMigrating to XtraDB Cluster
Migrating to XtraDB Cluster
 
VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep Dive
 
MySQL Replication: Pros and Cons
MySQL Replication: Pros and ConsMySQL Replication: Pros and Cons
MySQL Replication: Pros and Cons
 

More from Kenny Gryp

MySQL Database Architectures - 2022-08
MySQL Database Architectures - 2022-08MySQL Database Architectures - 2022-08
MySQL Database Architectures - 2022-08Kenny Gryp
 
MySQL Operator for Kubernetes
MySQL Operator for KubernetesMySQL Operator for Kubernetes
MySQL Operator for KubernetesKenny Gryp
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10Kenny Gryp
 
MySQL InnoDB Cluster / ReplicaSet - Tutorial
MySQL InnoDB Cluster / ReplicaSet - TutorialMySQL InnoDB Cluster / ReplicaSet - Tutorial
MySQL InnoDB Cluster / ReplicaSet - TutorialKenny Gryp
 
MySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRVMySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRVKenny Gryp
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterKenny Gryp
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesKenny Gryp
 
MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)Kenny Gryp
 
Reducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQLReducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQLKenny Gryp
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group ReplicationKenny Gryp
 
Online MySQL Backups with Percona XtraBackup
Online MySQL Backups with Percona XtraBackupOnline MySQL Backups with Percona XtraBackup
Online MySQL Backups with Percona XtraBackupKenny Gryp
 
Java MySQL Connector & Connection Pool Features & Optimization
Java MySQL Connector & Connection Pool Features & OptimizationJava MySQL Connector & Connection Pool Features & Optimization
Java MySQL Connector & Connection Pool Features & OptimizationKenny Gryp
 

More from Kenny Gryp (12)

MySQL Database Architectures - 2022-08
MySQL Database Architectures - 2022-08MySQL Database Architectures - 2022-08
MySQL Database Architectures - 2022-08
 
MySQL Operator for Kubernetes
MySQL Operator for KubernetesMySQL Operator for Kubernetes
MySQL Operator for Kubernetes
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10
 
MySQL InnoDB Cluster / ReplicaSet - Tutorial
MySQL InnoDB Cluster / ReplicaSet - TutorialMySQL InnoDB Cluster / ReplicaSet - Tutorial
MySQL InnoDB Cluster / ReplicaSet - Tutorial
 
MySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRVMySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRV
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
 
MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)
 
Reducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQLReducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQL
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group Replication
 
Online MySQL Backups with Percona XtraBackup
Online MySQL Backups with Percona XtraBackupOnline MySQL Backups with Percona XtraBackup
Online MySQL Backups with Percona XtraBackup
 
Java MySQL Connector & Connection Pool Features & Optimization
Java MySQL Connector & Connection Pool Features & OptimizationJava MySQL Connector & Connection Pool Features & Optimization
Java MySQL Connector & Connection Pool Features & Optimization
 

Recently uploaded

Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachBoston Institute of Analytics
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...amitlee9823
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...only4webmaster01
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...amitlee9823
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...amitlee9823
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...SUHANI PANDEY
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsJoseMangaJr1
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...amitlee9823
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 

Recently uploaded (20)

Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 

Percona XtraDB Cluster

  • 1. Percona XtraDB Cluster Kenny Gryp @gryp
 07 03 2017 1
  • 2. Agenda • Default asynchronous MySQL replication • Percona XtraDB Cluster: • Introduction / Features / Load Balancing • Use Cases: • High Availability / WAN Replication / Read Scaling • Limitations 2
  • 3. Percona • Percona is the oldest and largest independent MySQL Support, Consulting, Remote DBA, Training, and Software Development company with a global, 24x7 staff of over 100 serving more than 2,000 customers in 50+ countries since 2006 • Our contributions to the MySQL community include: • Percona Server for MySQL, Percona XtraDB Cluster • Percona Server for MongoDB • Percona XtraBackup: online backup • Percona Toolkit • Percona Monitoring & Management… 3
  • 4. Agenda • Default asynchronous MySQL Replication • Percona XtraDB Cluster: • Introduction / Features / Load Balancing • Use Cases: • High Availability / WAN Replication / Read Scaling • Limitations 4
  • 5. MySQL Replication If your HA is based on MySQL Replication - You may be playing a dangerous game ! 5
  • 6. Traditional Replication Approach Server 1 Server 2 replication stream “master” “slave” 6
  • 7. MySQL Replication 7 1 2 3 4 5 6 • Common Topologies: • Master-Master (Only 1 active master) • 1 or more layers of replication
  • 8. • Slaves can be used for reads: • asynchronous, stale data is the rule • data loss possible (*semi-sync) MySQL Replication 8 1 2 3 4 5 6
  • 9. • non-trivial: • external monitoring • scripts for failover • add node == restore backup • much better in 
 MySQL 5.6: GTIDs MySQL Replication 1 2 3 4 5 6 9
  • 10. Agenda • Default asynchronous MySQL Replication • Percona XtraDB Cluster: • Introduction / Features / Load Balancing • Use Cases: • High Availability / WAN Replication / Read Scaling • Limitations 10
  • 11. 11Data Centric DATA Server 1 Server 2 Server 3 Server N...
  • 13. 13Percona XtraDB Cluster • All nodes have a full copy of the data • Every node is equal • No central management, no SPOF
  • 14. 14Understanding Galera 38 The cluster can be seen as a meeting !
  • 15. PXC (Galera cluster) is a meeting bfb912e5-f560-11e2-0800-1eefab05e57d 15
  • 16. PXC (Galera cluster) is a meeting bfb912e5-f560-11e2-0800-1eefab05e57d 16
  • 17. PXC (Galera cluster) is a meeting bfb912e5-f560-11e2-0800-1eefab05e57d 17
  • 18. PXC (Galera cluster) is a meeting bfb912e5-f560-11e2-0800-1eefab05e57d 18
  • 19. PXC (Galera cluster) is a meeting bfb912e5-f560-11e2-0800-1eefab05e57d 19
  • 20. PXC (Galera cluster) is a meeting bfb912e5-f560-11e2-0800-1eefab05e57d 20
  • 21. PXC (Galera cluster) is a meeting bfb912e5-f560-11e2-0800-1eefab05e57d 21
  • 22. PXC (Galera cluster) is a meeting 22
  • 23. PXC (Galera cluster) is a meeting ??? 23
  • 24. PXC (Galera cluster) is a meeting 4fd8824d-ad5b-11e2-0800-73d6929be5cf New meeting ! 24
  • 25. What is Percona XtraDB Cluster ? • Percona Server • + WSREP patches • + Galera library • + Utilities (init, SST and cluster check scripts) • + Percona Changes to Galera 25
  • 26. 26 • This is a free open source solution, Percona Server is a MySQL alternative which offers breakthrough performance, scalability, features, and instrumentation. Self-tuning algorithms and support for extremely high-performance hardware make it the clear choice for organisations that demand excellent performance and reliability from their MySQL database server. Percona Server
  • 27. WSREP and Galera • WSREP API is a project to develop generic replication plugin interface for databases (WriteSet Replication) • Galera is a wsrep provider that implements multi- master, synchronous replication • Other 'Similar' Implementations: • MariaDB Galera Cluster • Galera Cluster For MySQL 27
  • 28. What is Percona XtraDB Cluster ? Full compatibility with existing systems 28
  • 29. What is Percona XtraDB Cluster ? Minimal efforts to migrate 29
  • 30. What is Percona XtraDB Cluster ? Minimal efforts to return back to MySQL 30
  • 31. 31Features • 'Synchronous' Replication • Multi Master • Parallel Applying • Quorum Based • Certification/Optimistic Locking • Automatic Node Provisioning • PXC Specific Features
  • 32. 32Features • 'Synchronous' Replication • Multi Master • Parallel Applying • Quorum Based • Certification/Optimistic Locking • Automatic Node Provisioning • PXC Specific Features
  • 33. 33(Virtual) Synchronous Replication • Writesets (transactions) are replicated to all available nodes on commit (and queued on each) • Writesets are individually “certified” on every node, deterministically.Either it is committed on all nodes or no node at all (NO 2PC) • Queued writesets are applied on those nodes independently and asynchronously • Flow Control avoids too much ‘lag’
  • 35. 35(Virtual) Synchronous Replication • Reads can read old data • Flow Control (by default 16 trx) avoids lag • wsrep_sync_wait=1 can be enabled to ensure full synchronous reads • Latency: writes are fast, only at COMMIT, communication with other nodes happen
  • 38. 38Features • 'Synchronous' Replication • Multi Master • Parallel Applying • Quorum Based • Certification/Optimistic Locking • Automatic Node Provisioning • PXC Specific Features
  • 39. Multi-Master Replication • You can write to any node in your cluster* • Writes are ordered inside the cluster writes writes writes 39
  • 40. 40Features • 'Synchronous' Replication • Multi Master • Parallel Applying • Quorum Based • Certification/Optimistic Locking • Automatic Node Provisioning • PXC Specific Features
  • 41. Parallel Replication • Standard MySQL Application 
 writes N threads Apply 1 thread (MySQL 5.6: max 1 thread per schema, 5.7: Interval Based) 41
  • 42. Parallel Replication • PXC / Galera Application 
 writes N threads Apply M threads 
 (wsrep_slave_threads) 42
  • 43. 43Features • 'Synchronous' Replication • Multi Master • Parallel Applying • Quorum Based • Certification/Optimistic Locking • Automatic Node Provisioning • PXC Specific Features
  • 44. Quorum Based • If a node does not see more than 50% of the total amount of nodes: reads/writes are not accepted. • Split brain is prevented • This requires at least 3 nodes to be effective • a node can be an arbitrator (garbd), joining the communication, but not having any MySQL running • Can be disabled (but be warned!) 44
  • 45. • Loss of connectivity Quorum Based 45 Network Problem Does not accept Reads & Writes
  • 46. • 4 Nodes • 2 DC Quorum Based 46
  • 47. • Default quorum configuration:
 4 Nodes, 0 Nodes have quorum Quorum Based 47 Network Problem
  • 48. • With garbd Arbitrator: Quorum Based Arbitrator 48 Network Problem garbd (no data)
  • 49. 49Features • 'Synchronous' Replication • Multi Master • Parallel Applying • Quorum Based • Certification/Optimistic Locking • Automatic Node Provisioning • PXC Specific Features
  • 51. 51Optimistic Locking • Communication to the other nodes of the cluster only happens during COMMIT, this affects locking behavior. • Optimistic Locking is done: • InnoDB Locking happens local to the node • During COMMIT/Certification, the other nodes bring deadlocks
  • 52. 52Optimistic Locking • Some Characteristics: • also COMMIT and SELECT’s can fail on deadlock • Might require application changes:
 Not all applications handle this properly
  • 53. 53Traditional InnoDB Locking system 1 Transaction 1 Transaction 2 BEGIN Transaction1 BEGIN UPDATE t WHERE id=14 UPDATE t WHERE id=14 ... COMMIT Waits on COMMIT in trx 1
  • 54. 54InnoDB Locking With PXC system 1 Transaction 1 Transaction 2 BEGIN Transaction1 BEGIN UPDATE t WHERE id=14 UPDATE t WHERE id=14 ... COMMIT DML,COMMIT or SELECT ERROR due row conflict system 2 ...
  • 55. 55InnoDB Locking With PXC system 1 Transaction 1 Transaction 2 BEGIN Transaction1 BEGIN UPDATE t WHERE id=14 UPDATE t WHERE id=14 ... COMMIT COMMIT ERROR due row conflict system 2 ...ERROR 1213 (40001): Deadlock found when trying to get lock; try restarting transaction
  • 57. 57Features • 'Synchronous' Replication • Multi Master • Parallel Applying • Quorum Based • Certification/Optimistic Locking • Automatic Node Provisioning • PXC Specific Features
  • 58. Automatic Node Provisioning • When a node joins the cluster: • the data is automatically copied • when finished: the new node is automatically ready and accepting connections • 2 different types of joining: – SST (state snapshot transfer): full copy of the data – IST (incremental state transfer): send only the missing writesets (if available) 58
  • 59. StateTransfer Summary Full data SST Incremental IST New node Node long time disconnected Node disconnected short time 59
  • 60. Snapshot State Transfer mysqldump Small databases rsync Donor disconnected for copy time Faster XtraBackup Donor available Slower 60
  • 61. Incremental State Transfer Node was in the cluster Disconnected for maintenance Node crashed 61
  • 62. Automatic Node Provisioning writes writes writes new node joining data is copied via SST or IST 62
  • 63. Automatic Node Provisioning writes writes writes new node joiningwhen ready writes 63
  • 64. 64Features • 'Synchronous' Replication • Multi Master • Parallel Applying • Quorum Based • Certification/Optimistic Locking • Automatic Node Provisioning • PXC Specific Features
  • 65. 65PXC Specific Features • PXC Strict mode • Extended PFS support • ProxySQL integration • SST/XtraBackup Changes • Bug-Fixes
  • 66. 66PXC Strict Mode Prevent experimental/unsupported features: • Only Allow InnoDB Operations • Prevent Changing binlog_format!=ROW • Require Primary Key on tables • Disable Unsupported Features: • GET_LOCK, LOCK TABLES, CTAS • FLUSH TABLES <tables> WITH READ LOCK • tx_isolation=SERIALIZABLE
  • 67. 67PERFORMANCE_SCHEMA Support • Improve troubleshooting/debugging using Performance Schema • Threads • Files • Stages • Mutexes • https://www.percona.com/live/plam16/sessions/exploring- percona-xtradb-cluster-using-performance-schema • https://www.percona.com/doc/percona-xtradb-cluster/5.7/ manual/performance_schema_instrumentation.html
  • 68. 68ProxySQL • Layer 7 MySQL Load Balancer • Open Source • R/W Splitting • Connection management • Transparent Reconnect • Query Caching (TTL) • 'Sharding' (User, Schema or Regex)
  • 69. 69ProxySQL & PXC Integration • PXC includes ProxySQL as load balancer: • proxysql-admin • ProxySQL schedulers: • Health Checks • Reconfigures Nodes • PXC Maintenance Mode • Tell Load Balancer to rebalance load
  • 70. ProxySQL • Different possible setups: • be a dedicated layer • integrated at application layer • integrated at database layer 70
  • 71. Dedicated shared ProxySQL application server 1 application server 2 application server 3 PXC node 1 PXC node 2 PXC node 3 ProxySQL 71
  • 72. Dedicated shared ProxySQL application server 1 application server 2 application server 3 PXC node 1 PXC node 2 PXC node 3 ProxySQL 72
  • 73. ProxySQL on application side application server 1 application server 2 application server 3 PXC node 1 PXC node 2 PXC node 3 73 ProxySQL ProxySQL ProxySQL
  • 74. ProxySQL 'Endless' Possibilities application server 1 application server 2 application server 3 PXC node 1 PXC node 2 PXC node 3 74 ProxySQL ProxySQL ProxySQL ProxySQL ProxySQL
  • 75. 75Load Balancers Alternatives • ProxySQL (L7) • HAProxy (L4) • ScaleArc (L7, $$) • MySQL Router (L7, quite new) • MaxScale (L7, $ BS-License)
  • 76. Agenda • Default asynchronous MySQL Replication • Percona XtraDB Cluster: • Introduction / Features / Load Balancing • Use Cases: • High Availability / WAN Replication / Read Scaling • Limitations 76
  • 77. 77Use Cases • High Availability • WAN Replication • Read Scaling
  • 78. High Availability 78 • Each node is the same (no master-slave) • Consistency ensured, no data loss • Quorum avoids split-brain • Cluster issues are immediately handled on • no ‘failover’ necessary • no external scripts, no SPOF
  • 79. 79WAN replication MySQL MySQL MySQL • No impact on reads • No impact within a trx • Communication only happens during
 COMMIT (or if autocommit=1) • Use higher timeouts and
 send windows
  • 80. • Beware of increased latency • Within EUROPE EC2 • COMMIT: 0.005100 sec • EUROPE <-> JAPAN EC2 • COMMIT: 0.275642 sec 80WAN replication - latency MySQL MySQL MySQL
  • 81. 81 WAN replication with MySQL asynchronous replication MySQL MySQL MySQL • You can mix both types of replication • Good option on slow WAN link • Requires more nodes MySQL MySQL MySQL MySQL MySQL MySQL
  • 83. 83Read Scaling • No Read/Write Splitting necessary in App. • Write to all nodes(*)
  • 85. Agenda • Default asynchronous MySQL Replication • Percona XtraDB Cluster: • Introduction / Features / Load Balancing • Use Cases: • High Availability / WAN Replication / Read Scaling • Limitations 85
  • 86. 86Limitations • Supports only InnoDB tables • MyISAM support will most likely stay in alpha. • The weakest node limits write performance • All tables must have a Primary Key!
  • 87. 87Limitations • Large Transactions are not recommended if you write on all nodes simultaneously • Long Running Transactions • If the workload has a hotspot then (frequently writing to the same rows across multiple nodes) • Solution: Write to only 1 node
  • 88. 88Limitations • By Default DDL is done in TOI • Blocks ALL writes during schema change • For certain operations:
 wsrep_osu_method=RSU • pt-online-schema-change
  • 89. Summary • Default asynchronous MySQL Replication • Percona XtraDB Cluster: • Introduction / Features / Load Balancing • Use Cases: • High Availability / WAN Replication / Read Scaling • Limitations 89
  • 90. 90Resources • Percona XtraDB Cluster website: 
 http://www.percona.com/software/percona-xtradb-cluster/ • PXC articles on Percona Blog: 
 https://www.percona.com/blog/category/percona-xtradb-cluster/ • Slideshare: 
 https://www.slideshare.net/Grypyrg/pxc-introduction-34774802 Questions? Kenny Gryp - @gryp