How Complex Systems Fail (1998)

(how.complexsystems.fail)

118 points | by shortcrct 3 hours ago

16 comments

  • tptacek 1 hour ago
    I'm a broken record on how important I think this document is, and that it's hard to appreciate it until you've had extended experience with complex systems actually failing.

    The most commonly cited subtext or thrust of it is that "root cause analysis", at least on complex systems, is a fools errand. Something goes wrong, say, in a distributed lock system, and your whole deployment system enters a metastable failure state. Naturally, the "root cause" seems like lock system resiliency. But definitionally a metastable failure is one that persists after the inciting condition is resolved. Now you have two "root causes", the lock failure and the metastability of the deployment system fault. Keep looking and you'll find more.

    But to me the biggest brick to the forehead in this piece is further observation that random things are failing all the time in any complex system. "Complex systems run in degraded mode". Resilient components are good, but it's the resiliency of the overall process that orchestrates the whole system that determines whether things are going to blow up.

    All practitioner actions are gambles. I should have that inked somewhere.

    • pdonis 19 minutes ago
      > "root cause analysis", at least on complex systems, is a fools errand.

      Not when properly understood--which, to be fair, it often isn't. The proper purpose of root cause analysis is to answer the question: does this failure mean I need to change something about this system? If the answer turns out to be yes, the thing that you need to change gets called the "root cause" of the failure. Of course that's a misnomer, strictly speaking, but that doesn't mean you answered the actual question wrong.

      • DrewADesign 10 minutes ago
        I don’t blame people for being confused about the term in software — it’s a bit more straightforward in manufacturing, for example.

        That said, if you look at a system that failed and determine a root cause analysis is pointless, you may have just stumbled upon your root cause.

    • YZF 41 minutes ago
      Root Cause Analysis is an organizational ritual that makes people feel like they're doing something. It's more about politics than about engineering. Not only is the process not useful- more often than not the correct root cause isn't even correctly identified.

      Basically a poorly designed system is going to fail somewhere. I like to think about it either as the part of the iceberg that's visible or my other analogy is lighting doesn't strike twice at the same place. A robust/well designed system is just very different than a brittle/poorly designed system. The brittle system will exhibit random failures and trying to chase them is counterproductive.

      We do have systems that are fairly complex and reliable. Take an internal combustion engine as one example or an entire car or an airplane (well, one of the well designed ones). Then we build bigger systems on top of that, a city's transportation system, where we do get to scales where things "fail" all the time. Yes, some bus somewhere or some train somewhere doesn't get to a station at the correct time, because a bus breaks down or heavy traffic or whatnot. But still a well designed system is robust to those. The parts we build the systems out of are well understood and so the resulting reliability can also be understood.

      With software specifically we tend to not design and build that well. We throw stuff together. Then we're surprised when they fail. And we make excuses by saying "complex systems". I often feel it's our lack of discipline and skill vs. other domains and not really that our systems are that much more complex.

      EDIT: Some might argue that mechanical systems like engines are just fundamentally simpler than software. But look at something like a bearing. Just one bearing is an incredibly complex system. Bearing failure is a statistical event, some bearings fail sooner, some fail later. There are centuries of know-how in the bearings used in said engine. Mechanical engineers generally use well understood components/designs and build in margin to meet the requirements of the engine they're designing. In software we often re-invent the "bearing" or we'll pick some new unproven design for a "bearing" and we'll generally build without a good understanding of the performance or failure modes of our "bearings" and without a known pattern as to how to use them and when to use them. And then we're surprised when our "car" fails in weird ways. We also don't test to the same standard that a mechanical engineer would use for a new design. They would have a room full of widgets doing ten million cycles before they accept the design as part of a larger system. We "yolo" it...

    • ErroneousBosh 1 hour ago
      > I'm a broken record on how important I think this document is, and that it's hard to appreciate it until you've had extended experience with complex systems actually failing.

      If you want a bit of cheese to go with that wine, this article pairs nicely with The Grug-Brained Developer: https://grugbrain.dev/

      • tptacek 36 minutes ago
        I am also a broken record about Grug-brainedness, but I don't need to be so repetitive about it because so many other people are too.
  • jedberg 2 hours ago
    > Failure free operations require experience with failure.

    This is why we created Chaos Engineering. By constantly forcing failure, it made us always create systems in defense of that failure, and gave us great data on where the tipping point is for different systems within a particular failure mode.

    • obscurette 1 hour ago
      It's much more universal and complicated than that. One of the big issues schools and pedagogy in general struggle with is that our environment is far too safe in too many ways. For kids there is too few ways to learn from failures. Attempts to solve the issue look often like "Hey, kids, let's fall over now all at once in safest way possible and learn from it!". But it doesn't work at all. Real failures have to be unexpected, related to your decisions and really hurt so that you can learn from them.

      PS. Btw, I am certain that this is the main cause of the mental health crisis amongst young people.

      • eskimobloood 44 minutes ago
        > One of the big issues schools and pedagogy in general struggle with is that our environment is far too safe in too many ways. For kids there is too few ways to learn from failures.

        Its cause we already learned from our failures and make the world a safer place. In my youth we climbed on trees, one of my friend fall down broke his arm, the doctor couldn't fix it and he can not move the hand for the rest of his live. My friend would be happy do not been allowed to climb, or at least under safer conditions but have his hand moveable still. I burned myself really heavy with fireworks as teenager and have a huge scar from it. I never touched any firework after this but also never bought it for my kids, so they never had the chance to "learn" from making the the same mistake. Keep in mind that while claiming the world is too safe you say this from a perspective of an survivor.

        • jedberg 41 minutes ago
          There's a fine line between "we made the world safer" and "we made the world too constricting to learn". I would like my kids to be allowed to fail a bit more often, while still staying safe. I think we've swung too far in the safe direction.
      • jedberg 42 minutes ago
        I agree with you. Kids aren't allowed to fail anymore. And as a parent, when I try to let my kid fail, I get scolded for being a bad parent. Broken bones used to be a right of passage for kids. Now it happens far less. While a broken bone sucks, it teaches you important lessons! Don't do that again, and hey, you messed up but you're fine now.
        • Vinnl 27 minutes ago
          I feel like painfully falling without breaking bones are pretty good lessons already, and I don't quite see what the broken bones add there.
    • AlotOfReading 1 hour ago
      I've always struggled to apply this to the systems I work on. If the system fails, someone potentially dies, though in practice they've never been more than hospitalized. To avoid that, huge amounts of effort are expended on failure modelling and testing, but that doesn't eliminate unknown unknowns. That discrepancy has made front page news a couple times.
      • jedberg 45 minutes ago
        When I was at Netflix and reddit, one thing I said often was, "Luckily, we are not a bank". And it sounds like you are working on even more critical systems than that.

        Chaos engineering doesn't really apply to data critical or safety critical systems. You can't just break them in the real world to see how they fail.

        You have it exactly right -- it has to be modeled and tested in lab conditions. Safety critical systems are not a place for YOLO development.

        • YZF 25 minutes ago
          It's still a tool in the tool box. Somewhat analogous to accelerated life testing in non-software products. You induce conditions that make failures more likely to occur.
  • throwaway231013 4 minutes ago
    Highly recommend "The Logic of Failure" by Dietrich Dörner (1997)
  • feyman_r 2 hours ago
    I may have shared this before on a different submission: John Gall’s books are really good on this topic: General Systemantics [https://en.wikipedia.org/wiki/Systemantics]
    • littlecranky67 2 hours ago
      Gall's law is amongst my favorite ones and with decades of experience in software development, I have to say it holds absolutely true:

      > “A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works and cannot be patched up to make it work. You have to start over with a working simple system.” — John Gall, Systemantics (1975)

  • sandeepkd 48 minutes ago
    Overall a good collection on the complex systems, somehow it missed the part how complex system came into the existence in the first place itself.

    > Human expertise in complex systems is constantly changing

    I feel this is single most important factor responsible to both making system complex and at the same time improving them depending on who the people are and how they take failures and breakdowns. I find it funny but we are in an era where folks building ML systems do not seem to remember the direction in which to open the screws. They do have clear expertise in something new but clearly lack in some other areas

    • tptacek 26 minutes ago
      Literally the first item in the list addresses the necessity of complexity in the systems it's discussing.
  • squirrel 1 hour ago
    The definitive work on this topic is Normal Accidents, with a modern retelling in Meltdown.

    https://en.wikipedia.org/wiki/Normal_Accidents

    https://en.wikipedia.org/wiki/Meltdown_(Clearfield_and_Tilcs...

  • nemesis17 23 minutes ago
    Worth reading Leveson’s works on safety engineering.
  • rowyourboat 2 hours ago
    All of this sounds just like any air crash investigation I ever read
    • tptacek 1 hour ago
      Richard Cook was a UChicago anaesthesiologist who took up safety systems research after studying patient safety; some of his work is rooted in Three Mile Island, and some of it comes from aviation safety.
    • shash 1 hour ago
      And industrial accident investigation (except the ones with low regulation or whatever). And market or supply chain collapse, and civilization collapse (late Bronze Age anyone?)
  • yipinwong 1 hour ago
    I think there are a few common themes to the failure reasons, but cannot get my hands on it.

    This seems like a list of reasons while I am looking for more abstract directions on how to prevent them.

    ---

    I am trying not to use AIs to just do that for me to tinkle my neurons.

    • shash 1 hour ago
      I think, part of the point is that it’s not possible to have a recipe to prevent failures. They are cascades of many events coming together to fail in an a priori non obvious way.

      Or so I read the [site? article?]

  • icantevenhold 50 minutes ago
    One of the great documents of our civilisation
  • mohamedkoubaa 1 hour ago
    I can't tell if the article is describing how complex systems fail or if they are using failure characteristics to define complex systems.
    • shash 1 hour ago
      It’s more about failure. It’s right there on top.
  • evidaxis 30 minutes ago
    [flagged]
  • haemdahl 1 hour ago
    [dead]