Skip to content

Can I fail over a writer instance to a new and scaled up reader instance in an Single-AZ Aurora cluster?

0

We want to scale up our writer instance in our Single-AZ Aurora cluster. Is it possible (and better?) to create a new reader instance and then fail over the writer instance to the new reader OR (because we are on a SINGLE-AZ) we should modify the instance instead?

asked a year ago609 views
2 Answers
2
Accepted Answer

Hi Pia

Generally, replacing an instance to change its' size and/or instance class requires we goes through the EC2 provisioning control plane and often takes many minutes. It would be best to create a new "reader" instance of the appropriate new size and/or instance class in advance and then failover the writer role to it. This generally takes mid-10's of seconds for the failover, worst case is about 60 seconds. If you are using topology-aware native drivers for JDBC, ODBC, or Python right now (see https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Connecting.html), that failover time can be sub-10 seconds or so... After that, you can delete the original instance to save costs.

Hope that helps...

AWS
answered a year ago
EXPERT
reviewed a year ago
  • Thank you for the help!

  • I wanted to add that my bias tends to favor solutions with lower downtime. @Parthasaradi's answer below is also accurate and favors simplicity. If you use Infrastructure-as-Code (IaC) in your development and deployment, that might be an important consideration.

1

Hi Pia.

The Single-AZ Aurora cluster, it is generally better to directly modify the instance size of the writer rather than creating a reader and promoting it. Since you are not leveraging Multi-AZ benefits, promoting a reader won’t add much value and will introduce unnecessary complexity. If high availability and seamless scaling are important, consider moving to a Multi-AZ Aurora setup. This allows for easier scaling and failover between instances without significant downtime.

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Connecting.html

EXPERT
answered a year ago
EXPERT
reviewed a year ago
EXPERT
reviewed a year ago
  • Thank you for the help!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.