We've decided that currently the only way to solve the problem is by creating a server in the second account and doing a database dump from mySQL to a mounted volume.
This can then be restored to the new RDS instance in the second account.
First, note that you may be looking at the incorrect operation -- you describe that you want to change storage size, but have quoted documentation describing storage type. This is an important distinction: RDS advises that you won't experience an outage for changing storage size, but that you will experience an outage for changing storage type.
Expect degraded performance for changing storage size, the duration and impact of which will depend on several factors:
- Your RDS instance type
- Configuration
- Will this occur during maintenance?
- Will these changes occur first on your Multi-AZ slave, and then failover?
- Current database size
- Candidate database size
- AWS capacity to handle this request at your requested time of day, at your requested availability zone, in your requested region
- Engine type (for Amazon Aurora users, storage additions are managed by RDS as-needed in 10 GB increments, so this discussion is moot)
With this in mind, you would be better served by testing this yourself, in your environment, and on your terms. Try experimenting with the following:
- Restoring a new RDS instance from a snapshot of your existing instance, and performing this operation on the new clone.
- With this clone:
- Increase the size at different times of day, when you would expect a different load on AWS.
- Increase to different sizes.
- Try it with multi-AZ. See if your real downtime changes as compared to not enabling multi-AZ.
- Try it during a maintenance window, and compare it with applying the change immediately.
This will cost a bit more (it doesn't have to... you could do most of that in 1-3 instance-hours), but you will get a much cleaner answer than peddling for our experiences in a myriad of different RDS environments.
If you're still looking for a "ballpark" answer, I would advise to plan for at least performance degradation in the scope of minutes, not seconds -- again dependent very much on your environment and configuration.
For reference, I most recently applied this exact operation to add 10GB to a 40GB db.m1.small type instance on a Saturday afternoon (in EST). The instance remained in a "modifying" state for approximately 17 minutes. Note that the modifying state does not describe real downtime, but rather the duration that the operation is being applied. You won't be able to apply additional changes to the actual instance (although you can still access the DB itself) and this is also the duration that you can expect any performance degradation to occur.
Note : If you're only planning on changing the storage size an outage is unexpected, but note that it can occur if this change is made in conjunction with other operations like changing the instance identifier/class, or storage type.
Best Answer
1) I'm pretty sure there isn't any pre-available automatic way to achieve this. One day AWS Lambda will probably be capable, when it is taught how to receive an event after the RDS backup has occurred.
2) I think you've misunderstood what the RDS backups do. They actually take a snapshot of the RDS instance (i.e. the hidden EC2 instance on which the RDS instance is running). There is no database dump file which you can obtain and store or use outside of AWS. Restoring an RDS instance backup is actually spinning up a temporary new RDS instance from the snapshot, then copying your data round (or pointing apps to the restored instance)
I'd strongly recommend use of a script that uses your DB-specific dump tool (mysqldump, pg_dump, or whatever it is for SQLServer) to dump the production database from the production RDS instance, then import that into a pre-existing staging RDS instance, on whatever schedule you like.