High Availability Flashcards
You need to provide high availability to RDS. How do you do that?
Build a multi-AZ RDS
What happens when the AZ that contains your RDS end point goes down?
RDS will update end point DNS and re-points to other AZ automatically
How does RDS multi AZ work?
It maintains two exact copies of your DB in two AZ’s
What are the advantages of RDS multi AZ?
high availability
backups and restores are taken from the secondary
How do you force a RDS failover?
reboot primary in console or using the rebootinstance API call
What are read replicas and what are they used for?
read only copy of DB
Used to scale beyond compute or I/O capacity of a single DB instance by serving read traffic from read only copies
How do you create a RDS read replica?
AWS console or CreateDBInstanceReadReplica
What RDS instance types support read replicas?
MySQL
postgres
MariaDB
Aurora
You’ve created a read replica. While being created users complain of performance issues. Why?
The RDS instance is not multi-az. If it was the read replica would have been created from the secondary instance.
How do you connect to read replica?
a new DNS endpoint is created
You have an RDS db and wish to create a dev copy. How can you do that?
Create a RR and promote the RR
How many read replicas can you have?
5
Can you have read replicas in different regions?
Yes
What is the key metric for read replicas?
REPLICA LAG
How can you tell what RDS version you are using>?
AWS console - details or CLI = aws rds describe-db-instance –region