3

I would like to use a combination of an ELB and AutoScaling for a web application. For upgrades to the web application that don't involve changing the database, I can simply rotate all the instances in the AG with an updated image, etc.

However, if we have an upgrade with a database migration, I believe I will need to redirect all traffic to a static page while we are performing the migration.

What is the recommended way to handle these situations? Should I use an additional proxy in front of the ELB and point it to a server with the static page during the ugprade?

As you can tell I don't have a systems background, so forgive my ignorance.

3
  • Are you talking about upgrading/patching the database host or making changes to the database itself or maybe migrating to a new DB host? I am not sure what you mean so this is hard to answer.
    – Nathan V
    Nov 28, 2012 at 11:35
  • Are you using RDS? If you are, I can tell you a slick way to do this
    – Alex
    Jun 27, 2014 at 0:57
  • Yes, we are using RDS.
    – akoumjian
    Jun 27, 2014 at 4:15

1 Answer 1

0

If you're able to put your website in "read only" mode that would be ideal.

Essentially you would architect the website in such a way that writes to the database are not allowed while your migration happens.

The other technique you may want to take advantage of is feature toggling. This is where you deploy the new code, but don't activate it straight away. You can then quickly "toggle" the new code on/off as it has already been deployed.

Of course this all depends on how much control you have over your code and deployments, what sort of website you have, and how much it relies on the DB.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .