News for hackers. Stuff that matters.
Re:An update on Sunday’s service disruption by jameslk on Tuesday June 04, 2019 @12:44AM (#20091961)
> In essence, the root cause of Sunday’s disruption was a configuration change

I feel like I hear about config changes breaking these cloud hosts so often it might as well be a meme. Is there a reason why it's usually configurations to blame vs code, hardware, etc?

Re:An update on Sunday’s service disruption by klodolph on Tuesday June 04, 2019 @01:01AM (#20092066)
A large service doesn’t rely on any single piece of hardware. It would take many simultaneous hardware failures to bring down a service. In practice this means a major disaster like a hurricane or fire.

The configuration change is just the trigger, though. It’s not that the configuration change is “to blame”. The problem is really that the code doesn’t protect against configurations which can cause outages. After an incident like this, you would typically review why the code allowed this unintended configuration change, and change the code to protect against this kind of misconfiguration in the future.

The problem is that when you ask, “why?” you can end up with multiple different answers depending on how you answer the question.

Configuration changes are also somewhat difficult to test.

Re:An update on Sunday’s service disruption by grey-area on Tuesday June 04, 2019 @02:41AM (#20092490)
The configuration change is just the trigger, though

When there is an outage at a large cloud provider nowadays it's almost always a config change. I don't think it's helpful to treat these as isolated one-offs caused by a bogus configuration.

Perhaps what is required is a completely different attitude to config changes, which treats them as testable, applies them incrementally, separates the control plane, and allows simple rollback.

Code is stored in version control and extensively tested before deployment. Are config changes treated the same way? It certainly doesn't seem like it. Config changes should not be hard to test, hard to diagnose, and hard to rollback.

Re:An update on Sunday’s service disruption by SpicyLemonZest on Tuesday June 04, 2019 @03:01AM (#20092564)
Config changes at every major cloud provider I’m familiar with (including Google) satisfy your criteria. They’re testable, incrementally applied, and support easy and immediate rollbacks. And 95% of the time, when someone tries to release a bad config change, those mechanisms prevent or immediately remediate it.

The other 5% are cases like this. How would you discover in advance that “this config will knock over the regional network, but only when deployed at scale” is a potential failure mode? Even if you could, how do you write a test for that?

Re:An update on Sunday’s service disruption by grey-area on Tuesday June 04, 2019 @03:28AM (#20092709)
Well, one possible remediation for this particular issue would be to separate the control plane for configs from the network the configs control. It appears this bad config stopped them solving the problem in a timely way, which shouldn't really happen.

But I don't know the answers, I'm just saying config needs work and we should not pretend the problem lies elsewhere. As the article says, it is the root cause for most of these outages now. The parent said:

It’s not that the configuration change is “to blame”.

Which I (and the article) disagree with.

Re:An update on Sunday’s service disruption by SpicyLemonZest on Tuesday June 04, 2019 @03:48AM (#20092839)
Blaming the configuration system for outages is like blaming JIRA for bugs. Google and friends specifically try to ensure, as a matter of policy, that any change which might cause an outage is implemented as a config.
Re:An update on Sunday’s service disruption by grey-area on Tuesday June 04, 2019 @03:58AM (#20092907)
From the article, the root cause was a configuration change:

"In essence, the root cause of Sunday’s disruption was a configuration change that was intended for a small number of servers in a single region. The configuration was incorrectly applied to a larger number of servers across several neighboring regions...Google’s engineering teams detected the issue within seconds, but diagnosis and correction took far longer than our target of a few minutes. Once alerted, engineering teams quickly identified the cause of the network congestion, but the same network congestion which was creating service degradation also slowed the engineering teams’ ability to restore the correct configurations, prolonging the outage."

I do think we should blame the configuration system, it is clearly not robust enough, not tested enough, and not resilient in case of failure - a bug in the config can bring down the system which manages the config and stop them fixing the original bug.

Re:An update on Sunday’s service disruption by buckminster on Tuesday June 04, 2019 @05:49AM (#20093449)
So what happens when you need to update the control plane for configs? Do you add another layer?
Re:An update on Sunday’s service disruption by dboreham on Tuesday June 04, 2019 @07:53AM (#20094069)
The ultimate layer will be built from tobacco tins connected with tight wet string.
Re:An update on Sunday’s service disruption by grey-area on Tuesday June 04, 2019 @06:08AM (#20093546)
Who will configure the configurators?

Hopefully this layer would be far more stable and very infrequently touched.

Re:An update on Sunday’s service disruption by q3k on Tuesday June 04, 2019 @06:26AM (#20093616)
And something that's infrequently touched will likely be poorly understood and engineers will not have much knowledge on how to fix things fast when they break.
Re:An update on Sunday’s service disruption by klodolph on Tuesday June 04, 2019 @03:09AM (#20092607)
> I don't think it's helpful to treat these as isolated one-offs caused by a bogus configuration.

That’s why I said the config change is “just the trigger”. Root cause analysis will generally result in multiple causes for any problem.

> Perhaps what is required is a completely different attitude to config changes, which treats them as testable, applies them incrementally and allows simple rollback.

Google already has that, you can see it in the postmortems for other outages. It’s called canary.

> Code is stored in version control and extensively tested before deployment. Are config changes treated the same way? It certainly doesn't seem like it. Config changes should not be hard to test, hard to diagnose, and hard to rollback.

Unfortunately, in the real world config changes are hard to test. Not always, but often. Working on large deployments has taught me that even with config changes checked in to source control, with automatic canary and gradual rollouts, you will still have outages.

Code doesn’t have 100% test coverage either. Chasing after 100% coverage is a pipe dream.

Re:An update on Sunday’s service disruption by grey-area on Tuesday June 04, 2019 @03:23AM (#20092685)
Unfortunately, in the real world config changes are hard to test.

I'm not trying to suggest that I know what the answer is and it's simple, just that config does need more work, it now seems to be the point of failure for all these big networks (rather than hardware or code changes). These big providers seem to have almost entirely tackled hardware changes and software changes as causes of outages, and configs have been exposed as the new point of failure. That will require rethinking how configs are managed and how they are applied. I'm not talking about 100% test coverage, but failure recovery.

The article does suggest that config was the root cause:

In essence, the root cause of Sunday’s disruption was a configuration change that was intended for a small number of servers in a single region

What I'm suggesting is that what google (and Amazon) has for configs is not good enough, that the root cause of this outage was in fact a config change (like all the others), and that what is required is a rethink of configs which recognises that they need an entirely separate control plane, should never be global, should not be hard to test etc.

Clearly here, since the bad config was able to stop them actually fixing the problem, they need to rethink how their configs are applied somehow. As this keeps happening with different config changes I'd suggest this is not a one-off isolated problem but a symptom of a broader failure to tackle the fragile nature of current config systems.

Re:An update on Sunday’s service disruption by klodolph on Tuesday June 04, 2019 @04:27AM (#20093046)
Disclosure: I work in DevOps/SRE and I am honestly a bit put off by what you are saying. I think I'm actually a little bit angry at your comment.

It’s easy to say things like “should never be global” and “should not be hard to test”. These are goals, and meanwhile the business must go on, you also have other goals, and you cannot spend your entire budget preventing network outages and testing configs.

The things you are suggesting—separate control plane, non-global configs, making them easy to test—you can find these suggestions in any book on operations. So forgive me if your comment makes me a bit angry.

Re:An update on Sunday’s service disruption by grey-area on Tuesday June 04, 2019 @04:58AM (#20093219)
Sorry about that.

It wasn't intended to be a glib response, nor to minimise the work done in these areas, and I'm aware these goals are easy to state and incredibly hard to achieve. I've read the Google SRE book so probably the ideas just came from there.

From the outside, it does seem like config is in need of more work, because now that other challenges have been met, it is the one area that consistently causes outages now.

Re:An update on Sunday’s service disruption by klodolph on Tuesday June 04, 2019 @05:54AM (#20093477)
I will say that every time I’ve seen an outage triggered by a config push, there have been several other bugs involved at the same time. Software / code is still a problem, I wouldn't consider it solved, it’s just that the bugs will turn into outages during config changes.
Re:An update on Sunday’s service disruption by peterwwillis on Tuesday June 04, 2019 @12:27PM (#20096548)
Don't think of it as "config".

Think of it as input, to a global network of inter-dependent distributed decentralized programs, which control other programs, that then change inputs, that change the programs again, and which are never "off", but always just shifting where bits are.

Imagine a cloud-based web application. You've got your app code, and let's say an embedded HTTP server. The code needs to run somewhere, on Lambda, or ECS, or EC2. You need an S3 bucket, a load balancer, an internet gateway, security groups, Route53 records, roles, policies, VPCs. Each of those has a config, and when any is applied it affects all the other components, because they're part of a chain of dependencies. Now make the changes in multiple regions. Tests add up quickly, and that's just in ways that were obvious. Now add tests for outages of each component, timeouts, bad data, resource starvation, etc. Just a simple web service can mean tens of thousands of tests.

We imagine that because the things we're manipulating are digital, they must behave predictably. But they don't. Look at all the databases tested by Jepsen[1]. People who are intelligent and are paid lots of money still regularly create distributed systems with huge flaws that affect production systems. Creating a complex, predictable system is h a r d (and for Turing-complete systems, actually impossible - see the halting problem).

[1] https://jepsen.io/

Re:An update on Sunday’s service disruption by grey-area on Tuesday June 04, 2019 @02:04PM (#20097600)
Sure I think that’s a good way to think of it. When you do, it seems odd that you’d accept the possibility of inputs that can stop the entire system working to the extent that no new inputs can be tried for hours. In retrospect, that’s a mistake.

There are other ways to control change and limit breakage other than just tests - dev networks at smaller scale, canaries, truly segregated networks, truly separate control networks for these inputs etc. All have downsides but there are lots of options.

We would not accept a program that rewrites itself in response to myriad inputs and is therefore highly unpredictable and unreliable, and config/infrastructure should be held to the same standard.

Re:An update on Sunday’s service disruption by peterwwillis on Tuesday June 04, 2019 @02:40PM (#20097938)
> We would not accept a program that rewrites itself in response to myriad inputs and is therefore highly unpredictable and unreliable, and config/infrastructure should be held to the same standard.

Fwiw, that's what web browsers do; they download code that generates code and runs it, and every request-response has different variables that result in different outcomes.

And again, it's really not "config", it's input to a distributed system. It's not "infrastructure", it's a network of distributed applications. These can be developed to a high standard, but you need people with PhDs using Matlab to generate code with all the fail-safes for all the conditions that have been mapped out and simulated. Writing all that software is extremely expensive and time-consuming. In the end, nobody's going to hire people with PhDs to spend 3 years to develop fool-proof software just to change what S3 bucket an app's code is stored in. We have shitty tools and we do what we can with them.

Let's take it further, and compare it to road infrastructure. A road is very complex! The qualities of the environment and the construction of the road directly affect the conditions that can result in traffic collisions, bridge collapse, sink holes. But we don't hire material scientists and mechanical engineers to design and implement every road we build (or at least, it doesn't seem that way from the roads I've seen). You also need to constantly monitor the road to prevent disrepair. But we don't do that, and over time, poor maintenance results in them falling apart. But the roads work "well enough" for most cases.

Over time we improve the best practices of how we build roads, and they get better, just like our systems do. Our roads were dirt and cobblestone, and now they're asphalt and concrete. We've switched from having smaller, centralized services to larger, more decentralized ones. These advances in technology mean more complexity, which leads to more failure. Over time we'll improve the practice of running these things, but for now they're good enough.

Re:An update on Sunday’s service disruption by remus on Tuesday June 04, 2019 @03:10AM (#20092608)
> Perhaps what is required is a completely different attitude to config changes, which treats them as testable, applies them incrementally and allows simple rollback.

> Code is stored in version control and extensively tested before deployment. Are config changes treated the same way? It certainly doesn't seem like it. Config changes should not be hard to test, hard to diagnose, and hard to rollback.

Google already do this. The SRE book goes in to details https://landing.google.com/sre/books/

Re:An update on Sunday’s service disruption by robszumski on Tuesday June 04, 2019 @03:01AM (#20092566)
I am positive that Google has these systems in place. Or at least in many many places where config changes can go wrong. Hopefully they will share what caused it to fail in this circumstance.
Re:An update on Sunday’s service disruption by peterwwillis on Tuesday June 04, 2019 @01:15AM (#20092127)
Almost all outages are due to changes. Bugs in code usually surface pretty quickly, and hardware issues don't pose a problem in such large-scale infrastructure. Changes causing outages is par for the course. That's why the industry standard is now Infrastructure-as-Code and Immutable Infrastructure: you try to prevent anything from changing in a way that will later break, and manage it in ways that will be easier to fix when it does break.

Tools like Terraform are popular today because they allow the planning and staging of changes across complex services. They're still pretty limited, but mapping out dependencies and simulating changes can surface errors before you run into them, thus making it less necessary to perform a rollback. But unexpected problems still happen, which is why you need to test your rollbacks, and intentionally stress random parts of your system to discover unknown bottlenecks. Part of the purpose for stress testing is to have a realistic idea of what kind of capacity you will really have under different conditions. But it's also nearly impossible to accurately stress test production systems without consequences.

There are ways for Google to look for change issues, and they probably have lots of safeguards in place, but we don't know what they actually do to test changes. Some of their postmortems have pointed at a lack of stringent change control procedures. Hopefully they will practice what they preach (open/blameless postmortems) and share more details soon.

Re:An update on Sunday’s service disruption by singron on Tuesday June 04, 2019 @01:38AM (#20092219)
It's common practice in many organizations to effectively deploy new code with configuration changes. E.g. you write new code that is initially disabled then enable it with a configuration change. Since the code deploy didn't fail, you get a false confidence in the code and the configuration change seems like a safe "flag flip".
Re:An update on Sunday’s service disruption by joshuamorton on Tuesday June 04, 2019 @01:56AM (#20092297)
I would phrase this a bit differently:

Binary version changes are a special case of configuration change that we (swes?) are particularly adept at managing reliably and safely.

But there are lots of other config changes that are potentially dangerous, and that we aren't as good at doing safely.

Re:An update on Sunday’s service disruption by summerlight on Tuesday June 04, 2019 @01:53AM (#20092275)
Typically configuration changes tend to have much more impacts compared to implementation codes at the same line counts hence its consequences are less predictable. Also, it usually coordinates multiple systems at once, so it is much harder to test especially when it comes to a capacity problem caused by complex interactions among multiple systems. Canary or gradual roll-out cannot reliably catch this class of problems, since it's not really visible in a small scale.
Re:An update on Sunday’s service disruption by wilde on Tuesday June 04, 2019 @01:05AM (#20092084)
Configuration often goes through less testing and scrutiny, while simultaneously having a significantly faster deployment process.
Re:An update on Sunday’s service disruption by chippy on Tuesday June 04, 2019 @07:37AM (#20093959)
All infrastructure these days are configurations rather than code. K8s is basically all a set of config files, even a dockerfile is a config file.
Re:An update on Sunday’s service disruption by sidibe on Tuesday June 04, 2019 @12:56AM (#20092019)
It is harder to make useful tests for configuration changes than other kinds of changes.
Re:An update on Sunday’s service disruption by shereadsthenews on Tuesday June 04, 2019 @12:58AM (#20092039)
That's not true. Configuration is just another input to a system and the outputs can be checked. There is nothing difficult about testing configs that is not already difficult about testing code.
Re:An update on Sunday’s service disruption by keypusher on Tuesday June 04, 2019 @02:49AM (#20092520)
No, configuration defines the system and is therefore significantly harder to test. Application code can be unit tested and run in staging against simulated real world traffic. Configuration, on the other hand, often differs so much between production and staging that the only real way to test is to roll it out gradually and monitor the results. Just make staging and production identical then right? Easier said than done when your production infrastructure runs most of the worlds internet traffic. There’s a good reason that the last major outages to both AWS and Google were caused by infrastructure configuration changes, and it isn’t that their engineering sucks.
Re:An update on Sunday’s service disruption by joshuamorton on Tuesday June 04, 2019 @02:03AM (#20092328)
There is: many configuration changes are, by nature, global.

Code changes can be isolated and unit tested. Config changes often can't be.

You can still canary them, usually, but you lose some protection.

Re:An update on Sunday’s service disruption by Eridrus on Tuesday June 04, 2019 @12:04PM (#20096287)
As others have mentioned: testing configuration changes is very hard.

Why is it very hard? Because when you are the size of Google, there is no second version of prod to test things in, so the usual software engineering solution of trying the new thing in isolation and checking if it worked is unrealistic.

I think these constant failures from config changes should cause folks to re-evaluate how they do config changes though. If we can't just do a green/blue deploy of config changes like this, we probably need some other solution, whether it be the watchdog timers mentioned elsewhere in the thread, or some system that is able to show you the impact of a config change before it takes effect (probably more realistic for single services such as networking, rather than all config changes).

Re:An update on Sunday’s service disruption by fowl2 on Tuesday June 04, 2019 @01:24AM (#20092162)
In a well designed system I guess this is the only thing that can go wrong.
Re:An update on Sunday’s service disruption by fulafel on Tuesday June 04, 2019 @01:13AM (#20092115)
I don't know if there is a science in "root cause analysis" to pickin the one to put in the headline?

In this case, like most similar ones, it seems obvious that there are many things that conspired together to mess things up. If I got to decide based on the description, I would point the finger at the system properties that caused the 5 hour delay to reconfigure the network capacity.

Re:An update on Sunday’s service disruption by flukus on Tuesday June 04, 2019 @01:12AM (#20092112)
Well you can't just change code, it has to get reviewed, it has to go to QA, it has to go to UAT, it has to get signed off in triplicate by all the major stake holders. Configuration changes are easy though, they don't have to go through all these error prevention steps, we can just have our less technical support staff make configuration changes live in production. In fact we'll build them a DSL so we never have to make urgent code changes again...
Re:An update on Sunday’s service disruption by HALtheWise on Tuesday June 04, 2019 @01:30AM (#20092181)
I guarantee that Google does not allow non-technical support staff to make configuration changes to the core routing infrastructure of their datacenters. Other places might, but they run a much tighter ship than that.
Re:An update on Sunday’s service disruption by keypusher on Tuesday June 04, 2019 @01:40AM (#20092227)
A modern ops team should be sending configuration changes through the same code review process application code goes through. Infrastructure changes in something like Terraform, configuration changes in Puppet/Chef/etc, these are deployed and tested in dev, staging, prod.