Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS RDS instance upgrade down time [closed]

I have a few questions in regards to upgrading the RDS instance.

  1. What is the downtime when upgrading the instance from let's say small to large. Is the downtime relatively similar when you go and change any instance type(small, large, xlarge) or are there determining factors such as database size that alter the timing.
  2. Can anyone share a technique of how to upgrade the instance type avoiding the downtime using RDS? Is that even possible in RDS. It doesn't have to be in great detail just some cliff-notes/big-picture stuff.
  3. Is there down time when you allocate more disk space?
like image 745
Chuck Morris Avatar asked Jan 28 '11 19:01

Chuck Morris


People also ask

Does RDS upgrade cause downtime?

Upgrades to the database engine level require downtime. Even if your RDS DB instance uses a Multi-AZ deployment, both the primary and standby DB instances are upgraded at the same time. This causes downtime until the upgrade is complete, and the duration of the downtime varies based on the size of your DB instance.

How long does it take to upgrade RDS instance?

The instance upgrade on the slave usually takes around 10 to 20 minutes, but there is no downtime in this setup.

How long does it take to modify an AWS RDS instance?

Updating the DB instance class The standby instance is first modified, causing a failover. After the failover, the new standby is modified. The downtime required includes the duration of a failover completion, typically 60-120 seconds, and completion of the DB engine's crash recovery.

How long does RDS engine upgrade take?

MySQL major version upgrades typically complete in about 10 minutes. Some upgrades might take longer because of the DB instance class size or because the instance doesn't follow certain operational guidelines in Best practices for Amazon RDS.


2 Answers

I don't think this is an on-topic question for StackOverflow at all, but some information anyway:

  1. It's significant and depends on the size of the database. I've had it take an hour or more some times. I've also had creating snapshots, restoring from snapshots, and multi-az creation take around two hours before.

  2. It depends on how you have things configured now. If you have Multi-AZ already enabled, then an instance upgrade will actually occur on the slave, then a failover will occur, then the new slave is updated. This results in about 1 or 2 minutes of actual downtime. The instance upgrade on the slave usually takes around 10 to 20 minutes, but there is no downtime in this setup. Note that when it does the failover, Amazon does a DNS swap internally so that your RDS endpoint points to the right machine, so you may have to restart your web processes that point to the DB so that they reconnect to the DB and pull in the new IP from a new DNS lookup.

like image 106
Dan Grossman Avatar answered Sep 28 '22 11:09

Dan Grossman


db.t1.micro > db.m1.small : 8m30s

Engine:    mysql Storage:    6GiB Backups:    Yes Multi A-Z:  No 

The size/type of the database do appear to affect the downtime significantly.

like image 31
Alastair Avatar answered Sep 28 '22 11:09

Alastair