N. Virginia dying on its arse today is a pretty rare event, but it raises a few interesting questions.
Given the expected frequency of such an occurance, are any of you reconsidering your strategies for 100% cross-regional failover in case a whole region goes pop? Particularly for how you’d handle the expectation that the console/CLI might be completely unavailable.
I understand that Netflix was only ‘minimally’ affected?
Netflix was most likely minimally affected because of their Simian Army and more specifically Chaos Gorilla. They know this stuff happens (it happened a few years back and they weren’t prepared back then).
I think it makes sense to always be ready for a regional failure but I think most people arn’t really prepared monetarily to be able to do regional failover. I don’t mean they can’t do it because it will cost $X in AWS. I mean the money and time that will need to be invested to set up the environments to be able to do the failover.
If the apis that underly the CLI/console are down you aren’t doing anything regardless of if you are cross region or not.
My assumption would be at least direct API access is completely independent between regions though the web gui console given today is clearly not.
The CLI just uses those same APIs under the hood… I would hope it doesn’t have any region requirements to be able to run.
Overall if I was to do it I would want reserved instances in each region (because if us-east-1 goes down a lot of people are going to try to use the other regions so I wouldn’t bet on being able to launch.
I would need need to have all data synced on the fly to all regions. This means replicating S3, replicating any EBS volumes etc.
I would need need to detect it (and use detection that is able to detect/run from the other region) and automatically know to switch.
Overall unless you are very serious about it I doubt if being able to recover fully automatically is realistic. If I was running a web app or something pure web I would put the resources into it. As a medium size business where the compute supports the real mission and all essential services at least today can be run locally I don’t really have the resources nor honestly the need to be redundant/capable to that degree.
You could. Complexity depends on what your app needs. the complexity we ran in to was time drift if we were pushing a massive amount of data (which is understandable). It also depended on the day, sometimes it was better than others as to how caught up we were (dynamodb, mysql and mssql). To have the least impact you’d have to have a warm standby where everything is there and provisioned to the capacity it needs to. Swap some DNS and you’re back. You could also just run stuff HA across multiple regions. Disable the region that’s affected and move on. The cost on these would be basically doubling whatever you had and adding bandwidth cost of replication between regions. The other approach is a pilot light. You have the data there but then you trigger cloudformation to automate the creation of the rest. Or you click some buttons/execute some scripts. A significantly less costly method but way more complex. There are several ways it just again goes back to how complex your setup is, the amount of money you want to spend for DR, the time you’re willing to be down and the time it takes to automate all or some of it. I laugh because the complexity of adding cross region replication for some stuff is fairly ridiculous if it’s not built in. We’ve asked AWS support just to see what other folks have tried and they always seem to reply with “Why? Spread it across multiple AZs and that’s good.”
We ultimate decided we didn’t need cross region and super fast recovery. We have a meeting first thing with management tomorrow so we’ll see if these requirements are changed a bit.
I’d be really interested in some official comment from Amazon on this, because I’m not entirely clear what needs to fail to make the multi-AZ services of an entire region go down. Where’s the point of failure and what caused it?
I think in knowing that I’d have a much better case as to why multi-az by itself wasn’t good enough.
If you have an account team with them you can ask them to give you a detailed answer. I’m not sure how publicly forthcoming they are. We had a discussion with ours today but a meeting tomorrow to see wtf went wrong. In my opinion some services have been acting quirky the last week and half. Beanstalk behavior when nothing changed comes to mind. I’m still blaming them pushing a bunch of new stuff in preparation for invent and it just not playing nice. We’ll see.
edit: called it MS’s conference not invent.
Correct me if I’m wrong, but doesn’t Netflix most likely have infrastructure spun up in multiple regions to begin with, combined with latency based routing?
Seems that would kinda take care of the problem right there. us-east shits the bed and the latency to nor-cal or oregon is gonna be a lot better than “you’ll get packets back sometime this afternoon when Amazon fixes whatever broke”.
If you’re already doing latency-based routing to VPCs hosted in multiple regions to begin with, combined with pushing out all your static content with Cloudfront (as I again assume Netflix is), aside from a bit of a slowdown in the service, how noticeable would this be to Netflix?
Yeah a company like Netflix that probably has servers in all regions wouldn’t be the best example. It’s us smaller folks who have are only in a single region that are mostly hit by this. Would you spend the money to keep your data available in another region? Is it worth the cost based on the low rate this occurs?
I guess the answer to this question is, what’s your downtime worth? If you’re a business where your downtime costs more than having total duplication of your infrastructure in another region, combined with the bandwidth costs of keeping data in sync, then by all means, have the backup on hot standby.
My guess is that it’s unlikely enough that you still don’t really have to worry about it for 99% of cases, and even if you do see an entire region go down, Amazon will fix it pretty quickly.
I don’t see an entire AWS region being down for longer than 24 hours unless there’s a nuclear attack, major natural disaster or there’s zombies chewing on people’s necks inside Amazon’s data centers. These are all cases where there’d be more important things to deal with.
From what I understand Netflix only this year moved to 100% amazon. On top of that they manage a massive fleet of mostly ec2-classic instances. It most likely is multi region but I am sure they have a large management framework that is inside one large VPC or two to three now because of the discoveries they got from Chaos Gorilla.
“Why? Spread it across multiple AZs and that’s good.”
Keep in mind that the reality for most customers is that a few hours of downtime here and there isn’t the end of the world. There might be much wailing and gnashing of teeth over it, and throwing around of "9"s, but at the end of the day the real business impacts don’t tend to justify pursuing the alternatives that would be needed to protect from such outages.
I agree that most customers don’t need to add the complexity of multi-region adoption. We’re not that type of company but we agreed that the complexity of a multiple region deployment wasn’t necessary. We figured it out but brought it to management that declined that complexity. We still get “Why” when we ask about a multiple region deployment.
Yep! At my current job, we are implementing a few tools from NetflixOSS, namely Eureka and Zuul. We also are looking at using some form of “chaos tool” to the mix to make sure all our services are fault tolerant.
Days like today make you realize AWS is open for issues now and then, disaster recovery has really changed dynamics in the past 2-4 years!
Oh yes, it has the highest priority now and were doing everything we can to become disaster resilient. Until next week when we figured out what it’ll actually cost to set that up.
Yes, currently its only a prototype to entice the teams into building more robust systems but we do use it. Security monkey was the easiest to setup because of their docker implementation. The rest of the Army works well enough but after a few hours of testing you will have a working Chaos/Janitor/Conformity Monkies.
Each region has it’s own API endpoint. You set the region as part of the setup of a client/call to the API, or as a default in a config file, when using the API.