Discover the latest developments in the AWS RDS MySQL ecosystem with Vinoth Kanna, Founding Partner at Mydbops LLP. Explore the exciting new features and enhancements introduced in RDS MySQL in 2023, including support for Group Replication, snapshot upgrades, dedicated log volumes, and performance insights export to CloudWatch. Gain valuable insights into the introduction of new instance types and version releases throughout the year. Stay ahead of the curve by learning about the end-of-life dates for MySQL RDS 5.7 and extended support pricing considerations. Don't miss out on this informative session to deepen your understanding of AWS RDS MySQL and its evolving capabilities.
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
1. AWS RDS MySQL in 2023
What new and Interesting in RDS MySQL ecosystem ?
Vinoth Kanna
Founding Partner, Mydbops LLP
Mydbops Open Source Database Meetup - 15th Edition
2. About Me
Vinoth Kanna R S
❏ Making Database Management Simple at Scale
❏ Performance Tuning Ninja
❏ AWS RDS Cloud Expert
❏ Tech Speaker on Open Source Events
❏ Databases for living (12 years)
6. AWS RDS an Introduction
❏ AWS RDS was Launched in OCT 2009
❏ 15 Years in Service and evolved a lot
❏ Leader in DBaaS Market
❏ High Pace Innovation in Database
❏ MySQL RDS , MariaDB RDS , Aurora MySQL ( Serverless )
Introduction
8. ❏ RDS Support For Group Replication
❏ Snapshot Upgrade from MySQL 5.7 to 8.0
❏ Dedicated Log Volume
❏ Downtime Reduction with RDS Proxy
❏ RDS Cross Region Automated Backups
What’s New In RDS MySQL 2023 ?
9. ❏ RDS Performance Insights export to Cloudwatch
❏ Introduction of New Instance M7g and r7g
What’s New In RDS MySQL 2023 ?
11. RDS Support For Group Replication
❏ Introduced in MySQL 8.0.35 in AWS RDS
❏ Active - Active Cluster
❏ Needs At Least 3 RDS instances
❏ Enabled with Multi Primary
❏ Work on basis of Native MySQL Group Replication
❏ Ensures the database Consistency
13. New Functions for RDS Group Replication
❏ CALL mysql.rds_group_replication_start(1); Initialize a new group
❏ CALL mysql.rds_group_replication_start(0); Join an existing group
❏ CALL mysql.rds_group_replication_create_user(‘password’);
❏ CALL mysql.rds_group_replication_stop();
❏ Call mysql.rds_group_replicaton_set_advance_gtid();
More..
Note : RDS Proxy do not support Group Replication
15. Snapshot Upgrade from MySQL 5.7 to 8.0
❏ Upgrade MySQL 5.7 snapshots to MySQL 8.0 without the need of restoration.
❏ Supported Versions
❏ Source versions: MySQL 5.7.16 to 5.7.43
❏ Destination Versions: MySQL 8.0.28 to 8.0.34
❏ Standard support for RDS MySQL 5.7 is scheduled to conclude on February 29, 2024.
❏ Upgrade the snapshots,
In Console, Snapshot >>> Actions >>> Upgrade snapshot
17. Snapshot Upgrade from MySQL 5.7 to 8.0
❏ Automatic Snapshot Upgrade
❏ RDS supports automatic backups (snapshots) within the defined backup window for
up to 35 days
❏ Direct upgrades of automatic backups are not permitted.
❏ To initiate an upgrade, the automatic snapshot must be transformed into a “Manual
snapshot” through the copy process and upgrade the snapshot
❏ Auto snapshot >>> Copy snapshot >>> Upgrade snapshot
❏ In CLI,
aws rds modify-db-snapshot --db-snapshot-identifier mysnapshot
--engine-version 8.0.34
19. Dedicated Log Volume (DLV)
❏ Introduced in MySQL 8.0.28 in AWS RDS
❏ Enhanced Performance by Isolating InnoDB Redo logs
❏ Created with 1000GB (1TB) and 3000 PIOPS (IO1)
❏ In Multi AZ created on Primary and Secondary
❏ Databases with high writes benefits irrespective of Size.
❏ Track Redo log usage and Checkpoints before deciding
Note : Beware of cost($)
20. Minor Version upgrades can be done in seconds?
Multi AZ two readable stand with RDS proxy can bring down the Minor version upgrades to a
few seconds.
❏ From 35 seconds to a few seconds
❏ Minor Version Upgrades can be made faster
Note : RDS Proxy has to be used to avoid the loss of connection
22. Minor Version upgrades can be done in seconds?
How it works under the hood ?
❏ Readable Multi AZ uses Semi Sync replication under the hood for consistency.
❏ Initiates the Minor Version Upgrade to reader 1
❏ Initiates the Minor Version Upgrade to reader 2
❏ Once the readers is upgraded , Promote one reader to writer.
❏ Initiated the Minor version Upgrade on Old Writer.
❏ RDS proxy Handles the connection Pool and Connections are re routed to writer.
23. RDS Performance Insights export to Cloudwatch
❏ RDS Performance Insights :
❏ Comprehensive monitoring of DB instance metrics and dimensions, specifically
designed for efficient database troubleshooting and root cause analysis.
❏ Challenges with Performance Insights :
❏ Not feasible to create alarms for performance-related metrics directly in
Performance Insights.
24. RDS Performance Insights export to Cloudwatch
❏ Solution:
❏ Move performance insights metrics to CloudWatch to enable the creation of
alarms.
❏ Advantages of CloudWatch integration include access to advanced monitoring features
like anomaly detection, metric math, and statistics.
❏ Flexibility to export metrics to external monitoring tools such as Prometheus and
Grafana.
25. RDS Performance Insights export to Cloudwatch
❏ Automatic Metric Publication to CloudWatch:
❏ Performance Insights metrics, excluding DBLoad, are not automatically published to
CloudWatch.
❏ Utilize the Performance Insights API to retrieve metrics.
❏ Leverage the CloudWatch API to publish DB instance metrics to CloudWatch.
26. RDS Performance Insights export to Cloudwatch
❏ Automating the Process with Lambda and EventBridge:
❏ Create a Lambda function for automation.
❏ Schedule the Lambda function using Amazon EventBridge to run at specified
intervals (e.g., every five minutes).
❏ Specify the Performance Insights metrics to be published to CloudWatch.
28. From 2023 it is possible for MySQL RDS to Cross Region Automated Backups. It can enhance
disaster recovery by replicating the backups in different regions.
❏ Start-db-instance-automated-backups-replication use this CLI command to enable the cross
region replication
❏ The region can be chose as per the need. The snapshots are exported once they are ready in source
region.
Note : Cost is associated with cross region snapshot copy and data transfer cost
RDS Cross Region Automated Backups
29. Introduction of new db.m7g and db.r7g
❏ Graviton 3 based instance types
❏ 30% Performance benefit
❏ 27% cost benefit* (based on performance)
❏ Supported from MySQL 8.0.28 and above
❏ CPU and IO usage is better than Graviton 2 instance types
❏ Highly recommended for new deployments
30. Version Releases in 2023
RDS MySQL 8.0.32/5.7.41 FEB 7,2023
RDS MySQL 8.0.33/5.7.42 JUN 15, 2023
RDS MySQL 8.0.34/5.7.43 Aug 09, 2023
RDS MySQL 8.0.35/5.7.44 Nov 09,2023
RDS MySQL 8.1 Nov 10,2023
31. Awareness
❏ MySQL RDS 5.7 is EOL by Feb 29, 2024
❏ It is will be on extended support from Mar 01,2024
❏ Extended Support is Priced at per vCPU per hour $0.114 (In Mumbai Region) Year 1 and Year 2
❏ Extended Support is Priced at per vCPU per hour $0.228 (In Mumbai region) from Year 3.
32. Awareness
❏ Consider RDS MySQL 5.7 Running on
❏ MySQL Primary - db.m6g.16xlarge (64 vCPU)
❏ 2 Replicas - db.m6g.4xlarge (16 vCPU each)
Extended Support Cost
Total vCPU = 64 + 16*2 = 96
Daily Extended Support Cost = $ 262.65
Monthly Extended Support Cost = $ 7879.5