SlideShare uma empresa Scribd logo
Mastering Migration: MySQL
Replication to InnoDB Cluster Using
Cloning
Presented by
Praveen GR
Database consultant, Mydbops
About Myself
● Interested in Open Source Database Technology
● Oracle certified MySQL DBA
● AWS community builder
● Experienced in both On premise and Cloud
● Database Tech Speaker / Blogger
Mydbops Services
Focus on MySQL,MongoDB,PostgreSQL
Consulting
Services
Consulting
Services
Managed
Services
24*7
DBA Team
Targeted
Engagement
Problem statement
● Single Point of Failure
● Complex Failover Handling
● Replication Lag
● Data Consistency Challenges
● Read-Heavy Workloads
Agenda
● Native replication vs InnoDB cluster
● InnoDB Cluster
○ About
○ Requirement
○ Limitation
● Migration process
○ Native replication to InnoDB Cluster primary
○ Build InnoDB cluster
MySQL Native replication
MySQL Native replication
● Asynchronous replication
● No limitation on replica count
● SQL-thread, IO thread
● Relay log
● Replication lag
● Manual failover
● Architecture flexibility
Native MySQL Replication InnoDB cluster
Native replication vs InnoDB cluster
Aspect Native Replication InnoDB Cluster
Replication Method Master-Slave, Master-Master, etc. Group Replication (Synchronous)
Setup Complexity Manual configuration and management Simplified setup with automated management
Flexibility Highly customizable replication topologies Integrated solution with less customization options
Data Consistency May have replication lag Synchronous replication for real-time consistency
Failover Handling Typically requires external failover mechanisms Automated failover and recovery
Scalability Read scaling; limited write scaling Scales both read and write operations
Integrated Management Often managed using native database tools Managed through MySQL Shell
MySQL InnoDB Cluster
MySQL InnoDB Cluster
● Group Replication
● Automated Failover
● High Availability
● Consistency and Durability
● Multi-Primary Mode
MySQL InnoDB Cluster - Requirement
● Notable Requirement
○ InnoDB Storage Engine
○ Primary Keys
○ Network Performance
○ Performance Schema
MySQL InnoDB Cluster - Limitations
● Notable Limitations
○ SERIALIZABLE Isolation Level
○ Cluster size - 9
○ binlog_checksum=NONE upto 8.0.20
○ Multi-primary Mode Deadlock
○ Foreign Keys with Cascading Constraints in multi-primary mode groups
Migration process
Migration - Native replication to InnoDB Cluster primary
Migration - Requirement
● MySQL 8.0.17 & greater
● Same version of source and destination
● Enable clone plugin
● Create users
● Enable clone_valid_donor_list variable
● Start cloning
Migration - Native replication to InnoDB Cluster primary
● Clone plugin on Source server and primary node.
Migration - Native replication to InnoDB Cluster primary
● Create donor user on the source server.
Migration - Native replication to InnoDB Cluster primary
● Create recipient user on the primary node server.
Migration - Native replication to InnoDB Cluster primary
● Before starting the cloning, set clone_valid_donor_liston primary node
server.
● Start the cloning process
Migration - Native replication to InnoDB Cluster primary
● Status - performance_schema.clone_progress
Migration - Native replication to InnoDB Cluster primary
● Replication between Source and Primary node server.
Migration - Build InnoDB cluster
Migration - Build InnoDB cluster
● Pre-request
○ MySQL shell
○ Create cluster admin user.
○ Variables
■ Binlog_transaction_dependency_tracking = WRITESET
■ Enforce_gtid_consistency = ON
■ Gtid_mode = ON
■ Server_id = <unique ID>
Migration - Build InnoDB cluster
● Create cluster admin user
Migration - Build InnoDB cluster
● Add primary server into the cluster
Migration - Build InnoDB cluster
● Add secondary server into the cluster
Migration - Build InnoDB cluster
● Check the status of the cluster
Reference
● https://www.mydbops.com/blog/mysql-80-clone-plugin-and-its-internal-process
● https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-innodb-cluster-limitations.html
● https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-innodb-cluster-requirements.html
● https://dev.mysql.com/doc/mysql-shell/8.0/en/setting-up-innodb-cluster-and-mysql-router.html#install
ation
● https://www.mydbops.com/blog/mastering-mysql-group-replication-primary-promotion-techniques/
Any Questions?
Thank you

Mais conteúdo relacionado

Semelhante a Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0) with Cloning Best Practices.pdf

Deployments with rails
Deployments with railsDeployments with rails
Deployments with rails
Gourav Tiwari
 
Scalable Architecture 101
Scalable Architecture 101Scalable Architecture 101
Scalable Architecture 101
ConFoo
 
kranonit S06E01 Игорь Цинько: High load
kranonit S06E01 Игорь Цинько: High loadkranonit S06E01 Игорь Цинько: High load
kranonit S06E01 Игорь Цинько: High load
Krivoy Rog IT Community
 
NODE JS OC Meetup 1
NODE JS OC Meetup 1NODE JS OC Meetup 1
NODE JS OC Meetup 1
eddify
 

Semelhante a Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0) with Cloning Best Practices.pdf (20)

RedisConf17 - Dynomite - Making Non-distributed Databases Distributed
RedisConf17 - Dynomite - Making Non-distributed Databases DistributedRedisConf17 - Dynomite - Making Non-distributed Databases Distributed
RedisConf17 - Dynomite - Making Non-distributed Databases Distributed
 
Tips to drive maria db cluster performance for nextcloud
Tips to drive maria db cluster performance for nextcloudTips to drive maria db cluster performance for nextcloud
Tips to drive maria db cluster performance for nextcloud
 
Dynomite - PerconaLive 2017
Dynomite  - PerconaLive 2017Dynomite  - PerconaLive 2017
Dynomite - PerconaLive 2017
 
Monitoring your VM's at Scale
Monitoring your VM's at ScaleMonitoring your VM's at Scale
Monitoring your VM's at Scale
 
Running Containerized Node.js Services on AWS Elastic Beanstalk
Running Containerized Node.js Services on AWS Elastic BeanstalkRunning Containerized Node.js Services on AWS Elastic Beanstalk
Running Containerized Node.js Services on AWS Elastic Beanstalk
 
Parallel Replication in MySQL and MariaDB
Parallel Replication in MySQL and MariaDBParallel Replication in MySQL and MariaDB
Parallel Replication in MySQL and MariaDB
 
MySQL Cluster (NDB) - Best Practices Percona Live 2017
MySQL Cluster (NDB) - Best Practices Percona Live 2017MySQL Cluster (NDB) - Best Practices Percona Live 2017
MySQL Cluster (NDB) - Best Practices Percona Live 2017
 
OSMC 2008 | Nagios Eventbroker Modules by Andreas Ericsson
OSMC 2008 | Nagios Eventbroker Modules by Andreas EricssonOSMC 2008 | Nagios Eventbroker Modules by Andreas Ericsson
OSMC 2008 | Nagios Eventbroker Modules by Andreas Ericsson
 
MySQL Time Machine by replicating into HBase - Slides from Percona Live Amste...
MySQL Time Machine by replicating into HBase - Slides from Percona Live Amste...MySQL Time Machine by replicating into HBase - Slides from Percona Live Amste...
MySQL Time Machine by replicating into HBase - Slides from Percona Live Amste...
 
MongoDB World 2019: Packing Up Your Data and Moving to MongoDB Atlas
MongoDB World 2019: Packing Up Your Data and Moving to MongoDB AtlasMongoDB World 2019: Packing Up Your Data and Moving to MongoDB Atlas
MongoDB World 2019: Packing Up Your Data and Moving to MongoDB Atlas
 
Clusternaut: Orchestrating  Percona XtraDB Cluster with Kubernetes
Clusternaut:  Orchestrating  Percona XtraDB Cluster with KubernetesClusternaut:  Orchestrating  Percona XtraDB Cluster with Kubernetes
Clusternaut: Orchestrating  Percona XtraDB Cluster with Kubernetes
 
Montreal.rb 2022-10-05 - Glimmer DSL for SWT - Ruby Desktop Development GUI ...
 Montreal.rb 2022-10-05 - Glimmer DSL for SWT - Ruby Desktop Development GUI ... Montreal.rb 2022-10-05 - Glimmer DSL for SWT - Ruby Desktop Development GUI ...
Montreal.rb 2022-10-05 - Glimmer DSL for SWT - Ruby Desktop Development GUI ...
 
Deployments with rails
Deployments with railsDeployments with rails
Deployments with rails
 
Scalable Architecture 101
Scalable Architecture 101Scalable Architecture 101
Scalable Architecture 101
 
Netty training
Netty trainingNetty training
Netty training
 
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 up and accelerating Drupal 8 with NoSQL
Scaling up and accelerating Drupal 8 with NoSQLScaling up and accelerating Drupal 8 with NoSQL
Scaling up and accelerating Drupal 8 with NoSQL
 
kranonit S06E01 Игорь Цинько: High load
kranonit S06E01 Игорь Цинько: High loadkranonit S06E01 Игорь Цинько: High load
kranonit S06E01 Игорь Цинько: High load
 
NODE JS OC Meetup 1
NODE JS OC Meetup 1NODE JS OC Meetup 1
NODE JS OC Meetup 1
 
Netty training
Netty trainingNetty training
Netty training
 

Mais 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
 

Mais 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
 
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
 
Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding
 

Último

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Último (20)

FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 

Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0) with Cloning Best Practices.pdf

  • 1. Mastering Migration: MySQL Replication to InnoDB Cluster Using Cloning Presented by Praveen GR Database consultant, Mydbops
  • 2. About Myself ● Interested in Open Source Database Technology ● Oracle certified MySQL DBA ● AWS community builder ● Experienced in both On premise and Cloud ● Database Tech Speaker / Blogger
  • 3. Mydbops Services Focus on MySQL,MongoDB,PostgreSQL Consulting Services Consulting Services Managed Services 24*7 DBA Team Targeted Engagement
  • 4. Problem statement ● Single Point of Failure ● Complex Failover Handling ● Replication Lag ● Data Consistency Challenges ● Read-Heavy Workloads
  • 5. Agenda ● Native replication vs InnoDB cluster ● InnoDB Cluster ○ About ○ Requirement ○ Limitation ● Migration process ○ Native replication to InnoDB Cluster primary ○ Build InnoDB cluster
  • 7. MySQL Native replication ● Asynchronous replication ● No limitation on replica count ● SQL-thread, IO thread ● Relay log ● Replication lag ● Manual failover ● Architecture flexibility
  • 8. Native MySQL Replication InnoDB cluster
  • 9. Native replication vs InnoDB cluster Aspect Native Replication InnoDB Cluster Replication Method Master-Slave, Master-Master, etc. Group Replication (Synchronous) Setup Complexity Manual configuration and management Simplified setup with automated management Flexibility Highly customizable replication topologies Integrated solution with less customization options Data Consistency May have replication lag Synchronous replication for real-time consistency Failover Handling Typically requires external failover mechanisms Automated failover and recovery Scalability Read scaling; limited write scaling Scales both read and write operations Integrated Management Often managed using native database tools Managed through MySQL Shell
  • 11. MySQL InnoDB Cluster ● Group Replication ● Automated Failover ● High Availability ● Consistency and Durability ● Multi-Primary Mode
  • 12. MySQL InnoDB Cluster - Requirement ● Notable Requirement ○ InnoDB Storage Engine ○ Primary Keys ○ Network Performance ○ Performance Schema
  • 13. MySQL InnoDB Cluster - Limitations ● Notable Limitations ○ SERIALIZABLE Isolation Level ○ Cluster size - 9 ○ binlog_checksum=NONE upto 8.0.20 ○ Multi-primary Mode Deadlock ○ Foreign Keys with Cascading Constraints in multi-primary mode groups
  • 15. Migration - Native replication to InnoDB Cluster primary
  • 16. Migration - Requirement ● MySQL 8.0.17 & greater ● Same version of source and destination ● Enable clone plugin ● Create users ● Enable clone_valid_donor_list variable ● Start cloning
  • 17. Migration - Native replication to InnoDB Cluster primary ● Clone plugin on Source server and primary node.
  • 18. Migration - Native replication to InnoDB Cluster primary ● Create donor user on the source server.
  • 19. Migration - Native replication to InnoDB Cluster primary ● Create recipient user on the primary node server.
  • 20. Migration - Native replication to InnoDB Cluster primary ● Before starting the cloning, set clone_valid_donor_liston primary node server. ● Start the cloning process
  • 21. Migration - Native replication to InnoDB Cluster primary ● Status - performance_schema.clone_progress
  • 22. Migration - Native replication to InnoDB Cluster primary ● Replication between Source and Primary node server.
  • 23. Migration - Build InnoDB cluster
  • 24. Migration - Build InnoDB cluster ● Pre-request ○ MySQL shell ○ Create cluster admin user. ○ Variables ■ Binlog_transaction_dependency_tracking = WRITESET ■ Enforce_gtid_consistency = ON ■ Gtid_mode = ON ■ Server_id = <unique ID>
  • 25. Migration - Build InnoDB cluster ● Create cluster admin user
  • 26. Migration - Build InnoDB cluster ● Add primary server into the cluster
  • 27. Migration - Build InnoDB cluster ● Add secondary server into the cluster
  • 28. Migration - Build InnoDB cluster ● Check the status of the cluster
  • 29.
  • 30. Reference ● https://www.mydbops.com/blog/mysql-80-clone-plugin-and-its-internal-process ● https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-innodb-cluster-limitations.html ● https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-innodb-cluster-requirements.html ● https://dev.mysql.com/doc/mysql-shell/8.0/en/setting-up-innodb-cluster-and-mysql-router.html#install ation ● https://www.mydbops.com/blog/mastering-mysql-group-replication-primary-promotion-techniques/