Migration MySQL
Migration MySQL
===================================================================================
=======================================================================
Migrating from an on-premises MySQL 5.6 VM to Azure Flexible Server MySQL 8.0 can
offer several advantages
Advantages:
1. Improved Performance and Features:
- New Features: MySQL 8.0 introduces many new features such as window functions,
CTEs (Common Table Expressions), JSON improvements, and more.
- Performance Enhancements: MySQL 8.0 includes significant performance
improvements, including better indexing, faster query processing, and improved
InnoDB engine.
2. Scalability:
- Azure Flexible Server offers scalability options, allowing you to easily adjust
resources (CPU, memory, storage) based on your workload requirements.
3. High Availability and Reliability:
- Built-in high availability options with automatic failover.
- Managed backups and disaster recovery solutions.
4. Security:
- Enhanced security features like advanced threat protection, data encryption at
rest and in transit.
- Automated security patches and updates.
5. Cost Efficiency:
- Pay-as-you-go pricing model can be more cost-effective compared to maintaining
on-premises hardware.
- Reduced overhead costs associated with hardware maintenance and upgrades.
6. Managed Service:
- Reduced administrative overhead since Azure handles routine database
maintenance tasks such as backups, patching, monitoring, and scaling.
7. Compliance:
- Azure services are compliant with a variety of industry standards and
regulations, which can help meet organizational compliance requirements.
===================================================================================
============================================================================
Cons:
1. Management Overhead: Requires more management, including OS maintenance,
patching, and security updates.
2. Complexity: Higher complexity in setup and maintenance, which may require more
technical expertise.
3. Cost: Potentially higher costs due to the need to manage and maintain the
virtual machine.
4. Responsibility: Greater responsibility for ensuring high availability, disaster
recovery, and performance optimization.
Conclusion
- Azure VM MySQL 8.0 is ideal for scenarios where you need full control and
customization, are willing to manage the infrastructure, and have the technical
expertise to handle the complexity.
- Azure Flexible Server for MySQL 8.0 is better suited for users who prefer a
managed service with reduced administrative burden, built-in high availability, and
seamless integration with Azure services.
Choosing between them depends on your specific needs, technical expertise, and the
level of control you require.
===================================================================================
=======================================================================
In-Place Upgrade:
Control: With an in-place upgrade, you have direct control over the upgrade process
and can perform custom configurations or adjustments as needed.
Downtime: In-place upgrades typically require downtime as the MySQL service and the
server itself need to be stopped during the upgrade.
Manual setup and configuration: we are responsible for setting up the new server
with RHEL 9, installing MySQL 8.0, migrating data, and ensuring compatibility of
applications with the new MySQL version.
1.Do in place on existing server from MySQL 5.6 to MySQL 5.7 on RHEL 6. - This is
because we don't have MySQL 5.6 version flexible so we have to upgrade before doing
anything- 60 mins
2. Configure DMS job to migrate data from on prem MySQL 5.7 to MySQL flexible
server 5.7 version -- 8 Hours
3. Once data migration is done to MySQL 5.7 then we do upgrade the flexible server
to 8.0 - At this point we either stop and work on MySQL 5.7 flexible or we can
immediately upgrade 8.0 which is very easy from azure portal.-- 30 mins.
We can enable DMS job for all the servers at once and without any downtime we can
migrate the data from old to new server until the replication is caught up. Once
replication is caught up we wait for the minimal downtime for DNS record change and
then cut replication when ready and done.
Minimal Downtime: DMS can perform migrations with minimal downtime using continuous
replication or utilizing features like database snapshots and change data capture.
Data Transformation: DMS offers options to perform data and schema transformations
during the migration process, allowing you to modify and map data between the
source and target databases.
OS upgrade included: When using DMS, you can provision a new RHEL 9 instance in
azure and perform the migration to the new operating system as part of the
migration process.