Aws RDS
Aws RDS
AGENDA
RDS
MySQL and Amazon Aurora Database Creations and Query Executions
Key Concepts:
➢ Master Replica
➢ Cross Region Replica
➢ Snapshot
➢ Cluster
➢ Clone
➢ Restore from S3
➢ Query Editor
➢ Reserved instance
Key Benefits:
➢ Lower administrative burden - Easy to use.
➢ High Performance - General Purpose (SSD) Storage.
➢ Scalability – Scale-up & Scale-down is possible.
➢ High Availability and durability.
➢ Backup and Recovery: Possible Automated backups.
➢ Data Secure: Possible with all Encryption, Cross Region replication, Clone, Snapshot, Master Replica.
➢ Maintenance in terms of monitoring the metrics.
➢ Cost-effectiveness: Pay only for what you use.
➢ This runs in Server (ex: MySQL) as well as in Serverless infrastructure (ex: Amazon Aurora)
➢ Pricing - https://calculator.s3.amazonaws.com/index.html?lng=#
Objective:
➢ Master Replica – Test Synchronization, Auto Instance Promotion of Replica in case of Master DB is down
➢ Snapshot or Image – Versioning
Try to connect MySQL using greensreplica endpoint and check the data
Provisioned - Provision and manage server instances – low cost compare to serverless
Serverless - AWS will handle end to end ASG etc - high in cost
Follow below steps and create an aurora DB:
➢ Network & Security (Default VPC, db subnet group, public accessibility (No), AZ, Existing SG)
➢ Database options (Identifier, db name, port(3306), Disable IAM authentication)
➢ Encryption - Disable
➢ Failover - No preferences
➢ Backup - default 1 days
➢ Backtrack - Disable
➢ Log exports - Keep as such
➢ Monitoring - disable
➢ Maintenance - Disable
➢ Deletion protection - uncheck
➢ then click on create database
Create Clone
➢ Copy of a db, It run as a instance
➢ The data persist upto when we taken a Clone, It is not synched with DB
use case:
➢ Helps when the db have a problem, we can take a clone and perform troubleshoot
➢ help to create a new db with same data clone is very much helpful
➢ Read and Write will happen in clone as well
Query Editor: New Feature, Front end tool to connect DB to enable to execute queries
CREATE DATABASE BY RESTORING FROM S3:
Restore the log files or snapshot, data whatever it may be can restore in case of loss in db
with this option
DEMOLISH:
1. MySQL: Delete the Master and Replica
2. Amazon Aurora: Delete all the Readers then automatically cluster deleted.
3. Delete subnet group
4. Delete EC2 instance
5. Check any Snapshot created, if yes, delete the same