Tag: outages

  • The Day a Typo Took Down a Chunk of the Internet

    The Day a Typo Took Down a Chunk of the Internet

    On 28 February 2017, a huge number of websites and apps suddenly started misbehaving. Images wouldn’t load. Uploads failed. Some sites went fully offline. The cause turned out to be one of the most relatable mistakes in tech history: a typo.

    What happened

    An engineer at Amazon Web Services was debugging a problem with the billing system for S3, Amazon’s file storage service, in its Northern Virginia region. Following an established playbook, they ran a command meant to remove a small number of servers.

    One of the inputs to the command was entered incorrectly, and a much larger set of servers was removed, including ones that other important parts of S3 depended on. Restarting those systems took hours.

    The ironic part

    Amazon’s own status dashboard, the page meant to tell everyone what was going on, also depended on S3. So for a while, it couldn’t be updated to show the problem.

    Lessons for everyone else

    • Your website depends on more services than you think: storage, CDNs, fonts, payment providers, analytics
    • If an important file lives somewhere else and that somewhere goes down, your site looks broken even if your server is fine
    • Your status page should not live on the same infrastructure as the thing it’s reporting on
    • Monitoring from the outside sees what visitors see, including problems that aren’t “yours”

    Source: AWS – Summary of the Amazon S3 Service Disruption

  • 12 Ways a Perfectly Healthy Website Breaks Overnight

    12 Ways a Perfectly Healthy Website Breaks Overnight

    Nobody touched the website. Nobody deployed anything. And yet, in the morning, something is broken. Here’s a non-exhaustive list of how.

    1. Automatic plugin or theme updates change something you depended on.
    2. The SSL certificate expires, because auto-renewal failed quietly weeks ago.
    3. The domain expires, because the card on file expired first.
    4. A third-party script goes down (chat widget, analytics, fonts) and takes part of your page with it.
    5. The hosting company migrates servers and something small doesn’t come along.
    6. The disk fills up with logs or backups, and the site can’t write anything anymore.
    7. The cache saves a broken page and serves it to everyone, very fast.
    8. A firewall or security plugin starts blocking real visitors, or your monitoring.
    9. An API key expires, so maps, payments or forms stop working.
    10. PHP gets upgraded by the host and an old plugin isn’t ready for it.
    11. Someone else’s content changes: an embedded video is deleted, an external image moves.
    12. Traffic spikes after a newsletter or a social post, and the server can’t keep up.

    The common thread

    Almost none of these are visible from inside the WordPress admin. The dashboard looks fine. The editor works. Everything seems normal until you look at the site the way a visitor does: from the outside, in a real browser, on a schedule.

    That’s the whole idea behind monitoring. Not because something will definitely break tonight, but because eventually, one of these twelve will happen, and it’s better to hear it from a robot than from a customer.