Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0) with Cloning Best Practices
Explore the slides from our recent webinar on 'Mastering Database Migration: MySQL Replication to InnoDB Cluster Using Cloning.' Dive into the world of database migration, InnoDB Cluster, and the power of cloning. Discover best practices and insights shared by experts in the field. Stay updated with the latest trends in database management
Watch the webinar recording https://youtu.be/sc9TYXKAQWw
Visit our Mydbops blog https://www.mydbops.com/blog/ for further insights.
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
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
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.