How the Amazon Outage Affected RavenHQ, and What Will Happen
Join the DZone community and get the full member experience.Join For Free
“we can confirm that a large number of instances in a single availability zone have lost power due to electrical storms in the area,” amazon reported at 8:30 pm pacific time on friday the 29th.
among those servers were ravenhq-web-1 server (responsible for showing the www.ravenhq.com marketing site) and ravenhq-db-1 (responsible for all the databases located on 1.ravenhq.com).
the reason for that is apparently a big storm that hit the us-east-1 region (virginia data center). the data center lost power (and no generators were up, somehow) for about 30 minutes which caused extended outage for some of our customers. small comforts, but we were in the same boat as netflix, heroku, pinterest, and instagram, among others.
before we dig any deeper. no data was lost , and we resumed normal operations within a few hours. users with replicated plans had no interruption of service.
during the outage, we were in the process of bringing up a new node with all of the databases from the impacted servers, but that would have entailed customers having to change connection strings, and the outage was resolved before we got to that point.
i want to show you how ravenhq is architected from a physical stand point. what you can see isn’t actually the servers (those are fairly dynamic) but it is enough for you to get the picture.
in particular, both ravenhq-web-1 and ravenhq-db-1 were in us-east-1 region, and were impacted by this issue. the good news is that the rest of our servers were located in different availability regions and were not impacted by the issue.
in particular, that was a good stress test (which we could have done without, thank you very much, amazon’s non working generators) for our ha scenario. none of the replicated plans customers experienced much of a problem, we had an auto failover to the secondary server (and depending on your plan, if that would have gone down, the failover would go to the tertiary server, etc). we actually have a customer that has a 4 ways master / master replicated plan, so he is super safe .
unfortunately, that means that any customer that wasn’t on a replicated plan and was located on a us-east-1 server felt the impact. unfortunately, that meant a lot of the free plan customers, since those are predominantly located on that region. as well as a number of actual paying customers.
we are sorry for that, and we all understand the need to balance between “what happen if” and “what does it cost”. as a result, we are going to offer all existing customers a 25% discount for all replicated plans for the next 6 months. just contact us and ask for an upgrade to the replicated plan, and we will set it up for you.
one of the things that we are trying to do in ravenhq is really commoditize the notion of a database that is just there, and you worry not about it. going with the replicated plans is probably the best way to go about doing that, since your data is going to live on at least two physically remote servers, and we have auto failover ready to pop in and support your application if there are any issues. that is why we are offering the discount, as a way to make it even more affordable to go into high availability mode.
speaking of high availability, i should probably talk about what happened to www.ravenhq.com , and the answer is fairly simple. the cobbler's children go barefoot. we spent a lot of time designing and building ravenhq to be sustainable in the face of outages, but we focused all of our attention into the actual production instances, we didn’t really pay any mind to www.ravenhq.com . as far as we are concerned, this is a marketing site, and it was a low priority for ha story.
unfortunately when we actually had an outage, people really freaked out because www.ravenhq.com was down, even though we had the actual database servers up and running, the website being down gave the impression that all of ravenhq was down, which was decidedly not the case.
- we need to encourage customers to go to the replicated plans by default. they are more expensive,yes, but they are also safer .
- we need a better process in the case of outages, to move databases from failed nodes to new ones, and inform customers about this change.
more parts of are actual core infrastructure require to be ha. in particular, we need:
- to make sure that authentication works when core servers are missing (wasn’t a problem in this particular case, but our investigation revealed that it could be, so we need to solve that).
- ensure that www.ravenhq.com is fully replicated.
- create a /status page, where you can look at the status of the various servers and see how they are acting.
the last two are more for peace of mind than any real production need, but any cloud service runs on trust, and we think that adding those would ensure that if there are any problems in the future, we would be able to provide you with better service.
Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.