SlideShare une entreprise Scribd logo
1  sur  35
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
Dvir Volk
 
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized EnvironmentsBest Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
Jignesh Shah
 

Tendances (20)

MariaDB MaxScale
MariaDB MaxScaleMariaDB MaxScale
MariaDB MaxScale
 
Performance Tuning RocksDB for Kafka Streams' State Stores (Dhruba Borthakur,...
Performance Tuning RocksDB for Kafka Streams' State Stores (Dhruba Borthakur,...Performance Tuning RocksDB for Kafka Streams' State Stores (Dhruba Borthakur,...
Performance Tuning RocksDB for Kafka Streams' State Stores (Dhruba Borthakur,...
 
Galera cluster for high availability
Galera cluster for high availability Galera cluster for high availability
Galera cluster for high availability
 
Galera Cluster Best Practices for DBA's and DevOps Part 1
Galera Cluster Best Practices for DBA's and DevOps Part 1Galera Cluster Best Practices for DBA's and DevOps Part 1
Galera Cluster Best Practices for DBA's and DevOps Part 1
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
 
Introduction to memcached
Introduction to memcachedIntroduction to memcached
Introduction to memcached
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
 
Cassandra Introduction & Features
Cassandra Introduction & FeaturesCassandra Introduction & Features
Cassandra Introduction & Features
 
MariaDB Performance Tuning and Optimization
MariaDB Performance Tuning and OptimizationMariaDB Performance Tuning and Optimization
MariaDB Performance Tuning and Optimization
 
MariaDB High Availability
MariaDB High AvailabilityMariaDB High Availability
MariaDB High Availability
 
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized EnvironmentsBest Practices of HA and Replication of PostgreSQL in Virtualized Environments
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
 
Maxscale_메뉴얼
Maxscale_메뉴얼Maxscale_메뉴얼
Maxscale_메뉴얼
 
Megastore by Google
Megastore by GoogleMegastore by Google
Megastore by Google
 
OLTP+OLAP=HTAP
 OLTP+OLAP=HTAP OLTP+OLAP=HTAP
OLTP+OLAP=HTAP
 
ProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQLProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQL
 
Ceph and RocksDB
Ceph and RocksDBCeph and RocksDB
Ceph and RocksDB
 
RedisConf17- Using Redis at scale @ Twitter
RedisConf17- Using Redis at scale @ TwitterRedisConf17- Using Redis at scale @ Twitter
RedisConf17- Using Redis at scale @ Twitter
 
Running MariaDB in multiple data centers
Running MariaDB in multiple data centersRunning MariaDB in multiple data centers
Running MariaDB in multiple data centers
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
MariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & OptimizationMariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & Optimization
 

Similaire à Percona XtraDB Cluster ( Ensure high Availability )

MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
Lenz Grimmer
 
Mysqlhacodebits20091203 1260184765-phpapp02
Mysqlhacodebits20091203 1260184765-phpapp02Mysqlhacodebits20091203 1260184765-phpapp02
Mysqlhacodebits20091203 1260184765-phpapp02
Louis liu
 
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControlWebinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Continuent
 

Similaire à Percona XtraDB Cluster ( Ensure high Availability ) (20)

Percona XtraDB 集群文档
Percona XtraDB 集群文档Percona XtraDB 集群文档
Percona XtraDB 集群文档
 
Oss4b - pxc introduction
Oss4b   - pxc introductionOss4b   - pxc introduction
Oss4b - pxc introduction
 
MariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Galera Cluster - Simple, Transparent, Highly AvailableMariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Galera Cluster - Simple, Transparent, Highly Available
 
Scaling MySQL -- Swanseacon.co.uk
Scaling MySQL -- Swanseacon.co.uk Scaling MySQL -- Swanseacon.co.uk
Scaling MySQL -- Swanseacon.co.uk
 
Percona Xtrabackup - Highly Efficient Backups
Percona Xtrabackup - Highly Efficient BackupsPercona Xtrabackup - Highly Efficient Backups
Percona Xtrabackup - Highly Efficient Backups
 
Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6
Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6
Webinar slides: Introducing Galera 3.0 - Now supporting MySQL 5.6
 
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
 
Introducing Galera 3.0
Introducing Galera 3.0Introducing Galera 3.0
Introducing Galera 3.0
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
 
Mysqlhacodebits20091203 1260184765-phpapp02
Mysqlhacodebits20091203 1260184765-phpapp02Mysqlhacodebits20091203 1260184765-phpapp02
Mysqlhacodebits20091203 1260184765-phpapp02
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
 
High performance and high availability proxies for MySQL
High performance and high availability proxies for MySQLHigh performance and high availability proxies for MySQL
High performance and high availability proxies for MySQL
 
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControlWebinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #7: ClusterControl
 
Scalable Persistent Storage for Erlang: Theory and Practice
Scalable Persistent Storage for Erlang: Theory and PracticeScalable Persistent Storage for Erlang: Theory and Practice
Scalable Persistent Storage for Erlang: Theory and Practice
 
Red Hat Ceph Storage Acceleration Utilizing Flash Technology
Red Hat Ceph Storage Acceleration Utilizing Flash Technology Red Hat Ceph Storage Acceleration Utilizing Flash Technology
Red Hat Ceph Storage Acceleration Utilizing Flash Technology
 
Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...
Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...
Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...
 
Backing up Wikipedia Databases
Backing up Wikipedia DatabasesBacking up Wikipedia Databases
Backing up Wikipedia Databases
 
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdfMySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
MySQL Ecosystem in 2023 - FOSSASIA'23 - Alkin.pptx.pdf
 
MySQL 5.7 Fabric: Introduction to High Availability and Sharding
MySQL 5.7 Fabric: Introduction to High Availability and Sharding MySQL 5.7 Fabric: Introduction to High Availability and Sharding
MySQL 5.7 Fabric: Introduction to High Availability and Sharding
 
Percona XtraDB Cluster
Percona XtraDB ClusterPercona XtraDB Cluster
Percona XtraDB Cluster
 

Plus de Mydbops

Efficient MySQL Indexing and what's new in MySQL Explain
Efficient MySQL Indexing and what's new in MySQL ExplainEfficient MySQL Indexing and what's new in MySQL Explain
Efficient MySQL Indexing and what's new in MySQL Explain
Mydbops
 

Plus de Mydbops (20)

Efficient MySQL Indexing and what's new in MySQL Explain
Efficient MySQL Indexing and what's new in MySQL ExplainEfficient MySQL Indexing and what's new in MySQL Explain
Efficient MySQL Indexing and what's new in MySQL Explain
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
 
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
 
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
Mastering Aurora PostgreSQL Clusters for Disaster RecoveryMastering Aurora PostgreSQL Clusters for Disaster Recovery
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
 
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
 
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
 
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE EventData-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
 
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
 
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
 
Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud...
Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud...Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud...
Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud...
 
Data Organisation: Table Partitioning in PostgreSQL
Data Organisation: Table Partitioning in PostgreSQLData Organisation: Table Partitioning in PostgreSQL
Data Organisation: Table Partitioning in PostgreSQL
 
Navigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
Navigating MongoDB's Queryable Encryption for Ultimate Security - MydbopsNavigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
Navigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
 
Data High Availability With TIDB
Data High Availability With TIDBData High Availability With TIDB
Data High Availability With TIDB
 
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
 
Enhancing Security of MySQL Connections using SSL certificates
Enhancing Security of MySQL Connections using SSL certificatesEnhancing Security of MySQL Connections using SSL certificates
Enhancing Security of MySQL Connections using SSL certificates
 
Exploring the Fundamentals of YugabyteDB - Mydbops
Exploring the Fundamentals of YugabyteDB - Mydbops Exploring the Fundamentals of YugabyteDB - Mydbops
Exploring the Fundamentals of YugabyteDB - Mydbops
 
Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops
 
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - MydbopsTiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
 
Achieving High Availability in PostgreSQL
Achieving High Availability in PostgreSQLAchieving High Availability in PostgreSQL
Achieving High Availability in PostgreSQL
 

Dernier

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 

Dernier (20)

HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 

Percona XtraDB Cluster ( Ensure high Availability )

  • 1. www.mydbops.com info@mydbops.com 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
  • 35. www.mydbops.com info@mydbops.com Contact US: Write to me at prk@mydbops.com DB Consulting Contact : info@mydbops.com Phone : 08048505683