Welcome to this live hands-on AWS lab, where we will be working with the Relational Database Service (RDS).
**NOTE:** This lab may take 10-15 minutes to provision.
This lab will provide you with hands-on experience with:
– Enabling Multi-AZ and backups
– Creating a read replica
– Promoting a read replica
– Updating the RDS endpoint in Route 53
Multi-AZ and read replicas serve different purposes with RDS. Multi-AZ is strictly for failover, as the standby instances cannot be read from by an application. Read replicas are used for improved performance and migrations. With read replicas, you can write to the primary database and read from the read replica. Because a read replica can be promoted to be the primary database, it makes for a great tool in disaster recovery and migrations.
Good luck, and enjoy the hands-on lab!
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Enable Multi-AZ Deployment
- Navigate to EC2 > Load Balancers.
- Copy the DNS name of the load balancer.
- Open a new browser tab, and enter the DNS name. We will use this web page to test failovers and promotions in this lab.
- Navigate to RDS > Databases.
- Click on our database instance.
- Click Modify.
- Click Yes for Multi-AZ deployment.
- Change Backup Retention to 1 day, needed later for read replicas.
- Click Continue.
- Click Apply immediately, and then Modify DB Instance.
- Once the instance shows Multi-AZ is enabled, reboot the primary.
- Use the web page to monitor the outage (normally about 30 seconds).
- The Multi-AZ standby is now the primary.
- Create a Read Replica
- Check the circle beside the database instance.
- Click Actions.
- Choose Create read replica.
- Choose US East (N. Virginia) for destination region.
- Enter a name.
- Choose Create read replica.
- Promote the Read Replica and Change the CNAME Records Set in Route 53 to the New Endpoint
- Once the read replica is available, check the circle next to it.
- Click Actions.
- Choose Promote.
- Click Continue, and then Promote Read Replica.
- Use the web page to monitor for downtime.
- Once the read replica is available, copy the endpoint.
- Open Route 53 in a new tab.
- Edit the
database.sysopsdatabase.com
record to use the read replica endpoint. - Monitor using the web page for downtime.