SlideShare a Scribd company logo
www.mydbops.com info@mydbops.com
Presenter
Karthik P R
CEO Mydbops
Percona XtraDB Cluster
Ensure High Availability
Mydbops is into MySQL/MongoDB Support and Consulting. It is founded by experts
who have scaled database at Yahoo! ,Percona and Datavail. We are providing an
expert level support and 24*7 monitoring for MySQL databases and its related
technologies like MariaDB , Percona ( also clustering ) . We support modern
database technologies in MySQL which includes Galera ( Clustering ), Group
Replication , SQL aware Load balancers like Maxscale / ProxySQL.
Mydbops
www.mydbops.com info@mydbops.com
Our Clients
CEO / DB Architect
About Me
1. Native MySQL Replication
2. Percona XtraDB Cluster
3. What is new in XtraDB Cluster ?
4. Load Balancing
5. Use Cases
6. Limitations
Table of Contents
1. Native MySQL Replication
2. Percona XtraDB Cluster
3. What is new in XtraDB Cluster ?
4. Load Balancing
5. Use Cases
6. Limitations
Table of Contents
• One of Best Feature in MySQL from start.
• Asynchronous in nature.
• Binary log based replication.
• Data is streamed between nodes.
• Works irrespective of MySQL Engine used.
Native MySQL Replication
• Can have any kind of topology and any levels
Native MySQL Replication
• Slaves helps in the read scalability.
○ Asynchronous Replication ( lag )
○ Data loss and data inconsistency
○ Parallelism.
■ 5.6 = Database level
■ 5.7 = Time based group
■ 8.0 = Writeset ( RC )
Native MySQL Replication
• Replication Switchover and Failover
○ Externals scripts for failover.
○ GTID 5.6 and Orchestrator makes things better.
• Adding a slave (node)
○ Backup and restore.
○ Manual config of slave coordinates.
Native MySQL Replication
1. Native MySQL Replication
2. Percona XtraDB Cluster
3. What is new in XtraDB Cluster ?
4. Load Balancing
5. Use Cases
6. Limitations
Table of Contents
Percona XtraDB Cluster is an active/active
high availability and high scalability open source
solution for MySQL.Percona XtraDB Cluster 5.7
is MySQL 5.7 compatible Galera-based high
availability (HA) solution.
Tightly integrated with Xtrabackup and ProxySQL for scalability. Heavily tested for
production workload and has a huge share in MySQL clustering solution & Openstack for
RDBMS.
Percona XtraDB Cluster
What is Galera ?
Galera is a replication plugin for the synchronous replication and multi master replication to
achieve High Availability. The read and writes can be made on any node and there is no
complex failover solutions. An open source from codership team.
What is wsrep ?
WSREP (Write Set REPlication) is an API to connect the Galera library and control the
characteristics of Galera.It helps to implement the Certificate based replication and multi
master replication.
Percona XtraDB Cluster
Features
● Synchronous Replication ( Virtually )
● Parallel applier threads
● Quorum based
● Automatic node provisioning
● Multi master writes
● PXC Specific features
Percona XtraDB Cluster
Transaction in Galera
Percona XtraDB Cluster
Transaction in Galera
Percona XtraDB Cluster
Percona XtraDB Cluster - Setup
Group Communication
Percona XtraDB Cluster
Parallel Appliers
● Write set consists only rows to replicate.
● Any transaction which writes different tuples can be parallelized.
● wsrep_slave_threads controls parallel threads
Percona XtraDB Cluster
Application Writes
Replication Writes
Percona XtraDB Cluster
Recovery
IST
(Incremental State
Transfer)
SST
(State Snapshot
Transfer)
● Disconnected for
maintenance
● Node crashed
● Joining a new node
● Node disconnected
for a long time
1. Native MySQL Replication
2. Percona XtraDB Cluster
3. What is new in XtraDB Cluster ?
4. Load Balancing
5. Use Cases
6. Limitations
Table of Contents
● Improved scalability by 10x.
● Tracking IST Progress
● Gcache Recovery
● PXC_Strict_mode
● Performance Schema for Galera
● Securing PXC
What is new in XtraDB Cluster ?
What is new in XtraDB Cluster ?
Improved XtraDB Cluster Scalability
What is new in XtraDB Cluster ?
IST Improvements
● Gcache Recovery ( Codership )
Gcache can be made to disk with gcache.recover=yes it helps in restoring cache on
restore.It saves pains in SST.
● PXC_strict_mode
PXC Strict Mode is designed to avoid the use of experimental and unsupported features in
Percona XtraDB Cluster. It includes storage engine checks, Primary key checks, binlog format ,
Autoinc lock mode and others.
What is new in XtraDB Cluster ?
1. Native MySQL Replication
2. Percona XtraDB Cluster
3. What is new in XtraDB Cluster ?
4. Load Balancing
5. Use Cases
6. Limitations
Table of Contents
● Load balancer for MySQL
○ HAProxy ( TCP Layer )
○ Maxscale ( Application Layer )
○ ProxySQL ( Application Layer )
● SQL aware load balancer (application layer) , forward the queries/statements by
understanding the underlying state of PXC.
○ Read-write split up
○ Automatic Switchover
Load Balancing
● ProxySQL is light weight
● Build by René Cannaò
● GPL V3 License
● SQL based administration
● Custom cluster health check script
● Proxysql-admin for easy configuration.
● ProxySQL 1.4 comes with inbuilt clustering
Load Balancing ( ProxySQL )
● Maxscale Build by MariaDB
● File based config
● Pluggable Router
● GPL and BSL model
○ Maxscale 1.4 (GPL)
○ Maxscale 2.X (BSL)
Load Balancing ( Maxscale )
1. Native MySQL Replication
2. Percona XtraDB Cluster
3. What is new in XtraDB Cluster ?
4. Load Balancing
5. Use Cases
6. Limitations
Table of Contents
● High Availability
○ Quorum
○ Automated Failover
● Read Scaling ( No write scaling )
○ No read-write split required
○ Read throughput increased with nodes
● WAN Based Replication.
○ Optimized WAN segments
Use cases
Sample Architecture ( 3 node + 2 node ProxySQL )
Use cases
1. Native MySQL Replication
2. Percona XtraDB Cluster
3. What is new in XtraDB Cluster ?
4. Load Balancing
5. Use Cases
6. Limitations
Table of Contents
● Supports Only InnoDB Engine.
● Tables should have Primary Key ( else created internally )
● All nodes should have same capacity.
● Avoid heavier and longer transaction ( OLTP workload )
● Schema changes are costly ( use pt-osc )
● Needs a Stable and strong network.
Limitations
● Percona XtraDB Cluster Official website
○ https://www.percona.com/doc/percona-xtradb-cluster/
● Percona XtraDB Blogs
○ https://www.percona.com/blog/category/percona-xtradb-cluster/
Resources
www.mydbops.com info@mydbops.com
Contact US:
Write to me at prk@mydbops.com
DB Consulting Contact : info@mydbops.com
Phone : 08048505683

More Related Content

PDF
Percona XtraDB Cluster
Kenny Gryp
 
PPTX
Running MariaDB in multiple data centers
MariaDB plc
 
PPTX
ProxySQL for MySQL
Mydbops
 
PDF
Galera cluster for high availability
Mydbops
 
PDF
MySQL/MariaDB Proxy Software Test
I Goo Lee
 
PDF
Percona Xtradb Cluster (pxc) 101 percona university 2019
Marcelo Henrique Gonçalves
 
PDF
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)
Jean-François Gagné
 
PDF
Parallel Replication in MySQL and MariaDB
Mydbops
 
Percona XtraDB Cluster
Kenny Gryp
 
Running MariaDB in multiple data centers
MariaDB plc
 
ProxySQL for MySQL
Mydbops
 
Galera cluster for high availability
Mydbops
 
MySQL/MariaDB Proxy Software Test
I Goo Lee
 
Percona Xtradb Cluster (pxc) 101 percona university 2019
Marcelo Henrique Gonçalves
 
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)
Jean-François Gagné
 
Parallel Replication in MySQL and MariaDB
Mydbops
 

What's hot (20)

PDF
PGConf APAC 2018 - Managing replication clusters with repmgr, Barman and PgBo...
PGConf APAC
 
PDF
MariaDB 10.11 key features overview for DBAs
Federico Razzoli
 
PDF
The Full MySQL and MariaDB Parallel Replication Tutorial
Jean-François Gagné
 
PDF
Maxscale_메뉴얼
NeoClova
 
PDF
Best practices for MySQL/MariaDB Server/Percona Server High Availability
Colin Charles
 
PDF
MariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Corporation
 
PDF
What is new in MariaDB 10.6?
Mydbops
 
PDF
Comparing high availability solutions with percona xtradb cluster and percona...
Marco Tusa
 
PDF
MySQL InnoDB Cluster - Group Replication
Frederic Descamps
 
PDF
ProxySQL High Avalability and Configuration Management Overview
René Cannaò
 
PDF
ProxySQL - High Performance and HA Proxy for MySQL
René Cannaò
 
PPTX
MySQL8.0_performance_schema.pptx
NeoClova
 
PDF
New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)
Altinity Ltd
 
PDF
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?
Miguel Araújo
 
DOCX
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
NeoClova
 
PDF
MySQL Advanced Administrator 2021 - 네오클로바
NeoClova
 
PDF
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Kenny Gryp
 
PDF
Histogram-in-Parallel-universe-of-MySQL-and-MariaDB
Mydbops
 
PDF
Using all of the high availability options in MariaDB
MariaDB plc
 
PDF
Understanding PostgreSQL LW Locks
Jignesh Shah
 
PGConf APAC 2018 - Managing replication clusters with repmgr, Barman and PgBo...
PGConf APAC
 
MariaDB 10.11 key features overview for DBAs
Federico Razzoli
 
The Full MySQL and MariaDB Parallel Replication Tutorial
Jean-François Gagné
 
Maxscale_메뉴얼
NeoClova
 
Best practices for MySQL/MariaDB Server/Percona Server High Availability
Colin Charles
 
MariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Corporation
 
What is new in MariaDB 10.6?
Mydbops
 
Comparing high availability solutions with percona xtradb cluster and percona...
Marco Tusa
 
MySQL InnoDB Cluster - Group Replication
Frederic Descamps
 
ProxySQL High Avalability and Configuration Management Overview
René Cannaò
 
ProxySQL - High Performance and HA Proxy for MySQL
René Cannaò
 
MySQL8.0_performance_schema.pptx
NeoClova
 
New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)
Altinity Ltd
 
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?
Miguel Araújo
 
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
NeoClova
 
MySQL Advanced Administrator 2021 - 네오클로바
NeoClova
 
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Kenny Gryp
 
Histogram-in-Parallel-universe-of-MySQL-and-MariaDB
Mydbops
 
Using all of the high availability options in MariaDB
MariaDB plc
 
Understanding PostgreSQL LW Locks
Jignesh Shah
 
Ad

Similar to Percona XtraDB Cluster ( Ensure high Availability ) (20)

PDF
Percona XtraDB 集群文档
YUCHENG HU
 
PDF
Oss4b - pxc introduction
Frederic Descamps
 
PDF
Scaling MySQL -- Swanseacon.co.uk
Dave Stokes
 
PDF
Percona Xtrabackup - Highly Efficient Backups
Mydbops
 
PDF
Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6
Severalnines
 
PDF
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Kenny Gryp
 
PDF
MySQL High Availability Solutions
Lenz Grimmer
 
PDF
MySQL High Availability Solutions
Lenz Grimmer
 
PDF
Mysqlhacodebits20091203 1260184765-phpapp02
Louis liu
 
PPTX
High performance and high availability proxies for MySQL
Mydbops
 
PDF
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Continuent
 
PDF
Scalable Persistent Storage for Erlang: Theory and Practice
Amir Ghaffari
 
PPTX
Red Hat Ceph Storage Acceleration Utilizing Flash Technology
Red_Hat_Storage
 
PDF
Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...
javier ramirez
 
PDF
Backing up Wikipedia Databases
Jaime Crespo
 
PDF
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
Alkin Tezuysal
 
ODP
MySQL 5.7 Fabric: Introduction to High Availability and Sharding
Ulf Wendel
 
PDF
Percona XtraDB Cluster
hybris2000
 
PPTX
MySQL Replication Evolution -- Confoo Montreal 2017
Dave Stokes
 
Percona XtraDB 集群文档
YUCHENG HU
 
Oss4b - pxc introduction
Frederic Descamps
 
Scaling MySQL -- Swanseacon.co.uk
Dave Stokes
 
Percona Xtrabackup - Highly Efficient Backups
Mydbops
 
Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6
Severalnines
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Kenny Gryp
 
MySQL High Availability Solutions
Lenz Grimmer
 
MySQL High Availability Solutions
Lenz Grimmer
 
Mysqlhacodebits20091203 1260184765-phpapp02
Louis liu
 
High performance and high availability proxies for MySQL
Mydbops
 
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Continuent
 
Scalable Persistent Storage for Erlang: Theory and Practice
Amir Ghaffari
 
Red Hat Ceph Storage Acceleration Utilizing Flash Technology
Red_Hat_Storage
 
Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...
javier ramirez
 
Backing up Wikipedia Databases
Jaime Crespo
 
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
Alkin Tezuysal
 
MySQL 5.7 Fabric: Introduction to High Availability and Sharding
Ulf Wendel
 
Percona XtraDB Cluster
hybris2000
 
MySQL Replication Evolution -- Confoo Montreal 2017
Dave Stokes
 
Ad

More from Mydbops (20)

PDF
Scaling TiDB for Large-Scale Application
Mydbops
 
PDF
AWS MySQL Showdown - RDS vs RDS Multi AZ vs Aurora vs Serverless - Mydbops...
Mydbops
 
PDF
Mastering Vector Search with MongoDB Atlas - Manosh Malai - Mydbops MyWebinar 39
Mydbops
 
PDF
Migration Journey To TiDB - Kabilesh PR - Mydbops MyWebinar 38
Mydbops
 
PDF
AWS Blue Green Deployment for Databases - Mydbops
Mydbops
 
PDF
What's New In MySQL 8.4 LTS Mydbops MyWebinar Edition 36
Mydbops
 
PDF
What's New in PostgreSQL 17? - Mydbops MyWebinar Edition 35
Mydbops
 
PDF
What's New in MongoDB 8.0 - Mydbops MyWebinar Edition 34
Mydbops
 
PDF
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Mydbops
 
PDF
Read/Write Splitting using MySQL Router - Mydbops Meetup16
Mydbops
 
PDF
TiDB - From Data to Discovery: Exploring the Intersection of Distributed Dat...
Mydbops
 
PDF
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
Mydbops
 
PDF
Demystifying Real time Analytics with TiDB
Mydbops
 
PDF
Must Know Postgres Extension for DBA and Developer during Migration
Mydbops
 
PDF
Efficient MySQL Indexing and what's new in MySQL Explain
Mydbops
 
PDF
Scale your database traffic with Read & Write split using MySQL Router
Mydbops
 
PDF
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
Mydbops
 
PDF
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Mydbops
 
PDF
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
Mydbops
 
PDF
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Mydbops
 
Scaling TiDB for Large-Scale Application
Mydbops
 
AWS MySQL Showdown - RDS vs RDS Multi AZ vs Aurora vs Serverless - Mydbops...
Mydbops
 
Mastering Vector Search with MongoDB Atlas - Manosh Malai - Mydbops MyWebinar 39
Mydbops
 
Migration Journey To TiDB - Kabilesh PR - Mydbops MyWebinar 38
Mydbops
 
AWS Blue Green Deployment for Databases - Mydbops
Mydbops
 
What's New In MySQL 8.4 LTS Mydbops MyWebinar Edition 36
Mydbops
 
What's New in PostgreSQL 17? - Mydbops MyWebinar Edition 35
Mydbops
 
What's New in MongoDB 8.0 - Mydbops MyWebinar Edition 34
Mydbops
 
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Mydbops
 
Read/Write Splitting using MySQL Router - Mydbops Meetup16
Mydbops
 
TiDB - From Data to Discovery: Exploring the Intersection of Distributed Dat...
Mydbops
 
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
Mydbops
 
Demystifying Real time Analytics with TiDB
Mydbops
 
Must Know Postgres Extension for DBA and Developer during Migration
Mydbops
 
Efficient MySQL Indexing and what's new in MySQL Explain
Mydbops
 
Scale your database traffic with Read & Write split using MySQL Router
Mydbops
 
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
Mydbops
 
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Mydbops
 
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
Mydbops
 
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Mydbops
 

Recently uploaded (20)

PPT
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PDF
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PDF
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
Zero Carbon Building Performance standard
BassemOsman1
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Inventory management chapter in automation and robotics.
atisht0104
 

Percona XtraDB Cluster ( Ensure high Availability )

  • 1. www.mydbops.com [email protected] Presenter Karthik P R CEO Mydbops Percona XtraDB Cluster Ensure High Availability
  • 2. Mydbops is into MySQL/MongoDB Support and Consulting. It is founded by experts who have scaled database at Yahoo! ,Percona and Datavail. We are providing an expert level support and 24*7 monitoring for MySQL databases and its related technologies like MariaDB , Percona ( also clustering ) . We support modern database technologies in MySQL which includes Galera ( Clustering ), Group Replication , SQL aware Load balancers like Maxscale / ProxySQL. Mydbops
  • 4. CEO / DB Architect About Me
  • 5. 1. Native MySQL Replication 2. Percona XtraDB Cluster 3. What is new in XtraDB Cluster ? 4. Load Balancing 5. Use Cases 6. Limitations Table of Contents
  • 6. 1. Native MySQL Replication 2. Percona XtraDB Cluster 3. What is new in XtraDB Cluster ? 4. Load Balancing 5. Use Cases 6. Limitations Table of Contents
  • 7. • One of Best Feature in MySQL from start. • Asynchronous in nature. • Binary log based replication. • Data is streamed between nodes. • Works irrespective of MySQL Engine used. Native MySQL Replication
  • 8. • Can have any kind of topology and any levels Native MySQL Replication
  • 9. • Slaves helps in the read scalability. ○ Asynchronous Replication ( lag ) ○ Data loss and data inconsistency ○ Parallelism. ■ 5.6 = Database level ■ 5.7 = Time based group ■ 8.0 = Writeset ( RC ) Native MySQL Replication
  • 10. • Replication Switchover and Failover ○ Externals scripts for failover. ○ GTID 5.6 and Orchestrator makes things better. • Adding a slave (node) ○ Backup and restore. ○ Manual config of slave coordinates. Native MySQL Replication
  • 11. 1. Native MySQL Replication 2. Percona XtraDB Cluster 3. What is new in XtraDB Cluster ? 4. Load Balancing 5. Use Cases 6. Limitations Table of Contents
  • 12. Percona XtraDB Cluster is an active/active high availability and high scalability open source solution for MySQL.Percona XtraDB Cluster 5.7 is MySQL 5.7 compatible Galera-based high availability (HA) solution. Tightly integrated with Xtrabackup and ProxySQL for scalability. Heavily tested for production workload and has a huge share in MySQL clustering solution & Openstack for RDBMS. Percona XtraDB Cluster
  • 13. What is Galera ? Galera is a replication plugin for the synchronous replication and multi master replication to achieve High Availability. The read and writes can be made on any node and there is no complex failover solutions. An open source from codership team. What is wsrep ? WSREP (Write Set REPlication) is an API to connect the Galera library and control the characteristics of Galera.It helps to implement the Certificate based replication and multi master replication. Percona XtraDB Cluster
  • 14. Features ● Synchronous Replication ( Virtually ) ● Parallel applier threads ● Quorum based ● Automatic node provisioning ● Multi master writes ● PXC Specific features Percona XtraDB Cluster
  • 17. Percona XtraDB Cluster - Setup Group Communication Percona XtraDB Cluster
  • 18. Parallel Appliers ● Write set consists only rows to replicate. ● Any transaction which writes different tuples can be parallelized. ● wsrep_slave_threads controls parallel threads Percona XtraDB Cluster Application Writes Replication Writes
  • 19. Percona XtraDB Cluster Recovery IST (Incremental State Transfer) SST (State Snapshot Transfer) ● Disconnected for maintenance ● Node crashed ● Joining a new node ● Node disconnected for a long time
  • 20. 1. Native MySQL Replication 2. Percona XtraDB Cluster 3. What is new in XtraDB Cluster ? 4. Load Balancing 5. Use Cases 6. Limitations Table of Contents
  • 21. ● Improved scalability by 10x. ● Tracking IST Progress ● Gcache Recovery ● PXC_Strict_mode ● Performance Schema for Galera ● Securing PXC What is new in XtraDB Cluster ?
  • 22. What is new in XtraDB Cluster ? Improved XtraDB Cluster Scalability
  • 23. What is new in XtraDB Cluster ? IST Improvements
  • 24. ● Gcache Recovery ( Codership ) Gcache can be made to disk with gcache.recover=yes it helps in restoring cache on restore.It saves pains in SST. ● PXC_strict_mode PXC Strict Mode is designed to avoid the use of experimental and unsupported features in Percona XtraDB Cluster. It includes storage engine checks, Primary key checks, binlog format , Autoinc lock mode and others. What is new in XtraDB Cluster ?
  • 25. 1. Native MySQL Replication 2. Percona XtraDB Cluster 3. What is new in XtraDB Cluster ? 4. Load Balancing 5. Use Cases 6. Limitations Table of Contents
  • 26. ● Load balancer for MySQL ○ HAProxy ( TCP Layer ) ○ Maxscale ( Application Layer ) ○ ProxySQL ( Application Layer ) ● SQL aware load balancer (application layer) , forward the queries/statements by understanding the underlying state of PXC. ○ Read-write split up ○ Automatic Switchover Load Balancing
  • 27. ● ProxySQL is light weight ● Build by René Cannaò ● GPL V3 License ● SQL based administration ● Custom cluster health check script ● Proxysql-admin for easy configuration. ● ProxySQL 1.4 comes with inbuilt clustering Load Balancing ( ProxySQL )
  • 28. ● Maxscale Build by MariaDB ● File based config ● Pluggable Router ● GPL and BSL model ○ Maxscale 1.4 (GPL) ○ Maxscale 2.X (BSL) Load Balancing ( Maxscale )
  • 29. 1. Native MySQL Replication 2. Percona XtraDB Cluster 3. What is new in XtraDB Cluster ? 4. Load Balancing 5. Use Cases 6. Limitations Table of Contents
  • 30. ● High Availability ○ Quorum ○ Automated Failover ● Read Scaling ( No write scaling ) ○ No read-write split required ○ Read throughput increased with nodes ● WAN Based Replication. ○ Optimized WAN segments Use cases
  • 31. Sample Architecture ( 3 node + 2 node ProxySQL ) Use cases
  • 32. 1. Native MySQL Replication 2. Percona XtraDB Cluster 3. What is new in XtraDB Cluster ? 4. Load Balancing 5. Use Cases 6. Limitations Table of Contents
  • 33. ● Supports Only InnoDB Engine. ● Tables should have Primary Key ( else created internally ) ● All nodes should have same capacity. ● Avoid heavier and longer transaction ( OLTP workload ) ● Schema changes are costly ( use pt-osc ) ● Needs a Stable and strong network. Limitations
  • 34. ● Percona XtraDB Cluster Official website ○ https://www.percona.com/doc/percona-xtradb-cluster/ ● Percona XtraDB Blogs ○ https://www.percona.com/blog/category/percona-xtradb-cluster/ Resources