SlideShare a Scribd company logo
1 of 34
Download to read offline
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
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)
Mydbops Services
Focus on MySQL, MongoDB, PostgreSQL, TiDB, Cassandra
Consulting
Services
Consulting
Services
Managed
Services
24*7
DBA Team
Targeted
Engagement
❏ Introduction AWS RDS
❏ Amazon RDS in 2023
❏ Version Releases in 2023
Agenda
Introduction
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
Amazon RDS MySQL in 2023
❏ 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 ?
❏ RDS Performance Insights export to Cloudwatch
❏ Introduction of New Instance M7g and r7g
What’s New In RDS MySQL 2023 ?
RDS Support for Group Replication
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
Major Parameters
RDS Support For Group Replication
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
Snapshot Upgrade from MySQL 5.7 to 8.0
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
Snapshot Upgrade from MySQL 5.7 to 8.0
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
Dedicated Log Volume
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($)
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
Minor Version upgrades can be done in seconds?
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.
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.
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.
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.
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.
RDS Performance Insights export to Cloudwatch
Performance Insights data in CloudWatch
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
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
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
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.
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
Any Questions?
● AWS Official Website
● https://www.mydbops.com/blog/implementing-mysql-group-replication-on-amazon-rds/
● https://www.mydbops.com/blog/mysql-latest-aws-rds-snapshot-upgrade
● https://blog.shellkode.com/aws-graviton-3-vs-graviton-2-a-sysbench-on-rds-mysql-629bce9b56e2
References:

More Related Content

Similar to AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15

Webinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDBWebinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDB
Severalnines
 
Webinar slides: How to automate and manage MongoDB & Percona Server for MongoDB
Webinar slides: How to automate and manage MongoDB & Percona Server for MongoDBWebinar slides: How to automate and manage MongoDB & Percona Server for MongoDB
Webinar slides: How to automate and manage MongoDB & Percona Server for MongoDB
Severalnines
 
WindowsAzureSDK1.7
WindowsAzureSDK1.7WindowsAzureSDK1.7
WindowsAzureSDK1.7
Saravanan G
 
Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...
Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...
Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...
Severalnines
 
MySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue SolutionsMySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue Solutions
RapidValue
 

Similar to AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15 (20)

The New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and MoreThe New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and More
 
Automating the Entire PostgreSQL Lifecycle
Automating the Entire PostgreSQL Lifecycle Automating the Entire PostgreSQL Lifecycle
Automating the Entire PostgreSQL Lifecycle
 
Get SaaSy with Red Hat OpenShift on AWS (CON305-S) - AWS re:Invent 2018
Get SaaSy with Red Hat OpenShift on AWS (CON305-S) - AWS re:Invent 2018Get SaaSy with Red Hat OpenShift on AWS (CON305-S) - AWS re:Invent 2018
Get SaaSy with Red Hat OpenShift on AWS (CON305-S) - AWS re:Invent 2018
 
Kaseya Connect 2013: Optimizing Your K Server - Best Practices in Kaseya Infr...
Kaseya Connect 2013: Optimizing Your K Server - Best Practices in Kaseya Infr...Kaseya Connect 2013: Optimizing Your K Server - Best Practices in Kaseya Infr...
Kaseya Connect 2013: Optimizing Your K Server - Best Practices in Kaseya Infr...
 
Migrate your EOL MySQL servers to HA Complaint GR Cluster / InnoDB Cluster Wi...
Migrate your EOL MySQL servers to HA Complaint GR Cluster / InnoDB Cluster Wi...Migrate your EOL MySQL servers to HA Complaint GR Cluster / InnoDB Cluster Wi...
Migrate your EOL MySQL servers to HA Complaint GR Cluster / InnoDB Cluster Wi...
 
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...
 
Webinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDBWebinar slides: How to Migrate from Oracle DB to MariaDB
Webinar slides: How to Migrate from Oracle DB to MariaDB
 
MariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineMariaDB: Connect Storage Engine
MariaDB: Connect Storage Engine
 
Databases - State of the Union
Databases - State of the UnionDatabases - State of the Union
Databases - State of the Union
 
Machine learning services with SQL Server 2017
Machine learning services with SQL Server 2017Machine learning services with SQL Server 2017
Machine learning services with SQL Server 2017
 
WordPress Cluster for Enterprise High-Availability and On-Demand Scaling
WordPress Cluster for Enterprise High-Availability and On-Demand ScalingWordPress Cluster for Enterprise High-Availability and On-Demand Scaling
WordPress Cluster for Enterprise High-Availability and On-Demand Scaling
 
Webinar slides: How to automate and manage MongoDB & Percona Server for MongoDB
Webinar slides: How to automate and manage MongoDB & Percona Server for MongoDBWebinar slides: How to automate and manage MongoDB & Percona Server for MongoDB
Webinar slides: How to automate and manage MongoDB & Percona Server for MongoDB
 
MariaDB SkySQL Autonome Skalierung, Observability, Cloud-Backup
MariaDB SkySQL Autonome Skalierung, Observability, Cloud-BackupMariaDB SkySQL Autonome Skalierung, Observability, Cloud-Backup
MariaDB SkySQL Autonome Skalierung, Observability, Cloud-Backup
 
WindowsAzureSDK1.7
WindowsAzureSDK1.7WindowsAzureSDK1.7
WindowsAzureSDK1.7
 
Microsoft Azure Database for MySQL delivered better performance and lower pri...
Microsoft Azure Database for MySQL delivered better performance and lower pri...Microsoft Azure Database for MySQL delivered better performance and lower pri...
Microsoft Azure Database for MySQL delivered better performance and lower pri...
 
Ultimate Guide to Microservice Architecture on Kubernetes
Ultimate Guide to Microservice Architecture on KubernetesUltimate Guide to Microservice Architecture on Kubernetes
Ultimate Guide to Microservice Architecture on Kubernetes
 
What's New in Amazon RDS for Open-Source & Commercial Databases
What's New in Amazon RDS for Open-Source & Commercial DatabasesWhat's New in Amazon RDS for Open-Source & Commercial Databases
What's New in Amazon RDS for Open-Source & Commercial Databases
 
LINE's Private Cloud - Meet Cloud Native World
LINE's Private Cloud - Meet Cloud Native WorldLINE's Private Cloud - Meet Cloud Native World
LINE's Private Cloud - Meet Cloud Native World
 
Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...
Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...
Webinar slides: Severalnines & MariaDB present: Automation & Management of Ma...
 
MySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue SolutionsMySQL Database Replication - A Guide by RapidValue Solutions
MySQL Database Replication - A Guide by RapidValue Solutions
 

More from Mydbops

More from Mydbops (20)

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...
 
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
 
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
 
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
 
MySQL Data Encryption at Rest
MySQL Data Encryption at RestMySQL Data Encryption at Rest
MySQL Data Encryption at Rest
 
Top-10-Features-In-MySQL-8.0 - Vinoth Kanna RS - Mydbops Team
Top-10-Features-In-MySQL-8.0 - Vinoth Kanna RS - Mydbops TeamTop-10-Features-In-MySQL-8.0 - Vinoth Kanna RS - Mydbops Team
Top-10-Features-In-MySQL-8.0 - Vinoth Kanna RS - Mydbops Team
 

Recently uploaded

Recently uploaded (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

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)
  • 3. Mydbops Services Focus on MySQL, MongoDB, PostgreSQL, TiDB, Cassandra Consulting Services Consulting Services Managed Services 24*7 DBA Team Targeted Engagement
  • 4. ❏ Introduction AWS RDS ❏ Amazon RDS in 2023 ❏ Version Releases in 2023 Agenda
  • 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 ?
  • 10. RDS Support for Group Replication
  • 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
  • 12. Major Parameters RDS Support For Group Replication
  • 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
  • 14. Snapshot Upgrade from MySQL 5.7 to 8.0
  • 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
  • 16. Snapshot Upgrade from MySQL 5.7 to 8.0
  • 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
  • 21. Minor Version upgrades can be done in seconds?
  • 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.
  • 27. RDS Performance Insights export to Cloudwatch Performance Insights data in 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
  • 34. ● AWS Official Website ● https://www.mydbops.com/blog/implementing-mysql-group-replication-on-amazon-rds/ ● https://www.mydbops.com/blog/mysql-latest-aws-rds-snapshot-upgrade ● https://blog.shellkode.com/aws-graviton-3-vs-graviton-2-a-sysbench-on-rds-mysql-629bce9b56e2 References: