I'm struggling to find the lesson to take out of that. Limit your dependencies? Have a safe mode that deactivates everything optional?
The anatomy of a 2AM mental breakdown
31–40 of 286 posts
Re: The anatomy of a 2AM mental breakdown
#32[flagged]
Re: The anatomy of a 2AM mental breakdown
#33Working as a SRE for a year in a large global company broke me out of this "panic" mode described in this post. To a business, every problem seems like a world-ending event. It's very easy to give in to panic in those situations. However, in reality, it's rarely that bad, and even if it is, you'll probably survive without harm. The key in these situations, and what I try to do (totally relate to breaking out in a swe…
Imagine how much more the damage would have been if someone was telling this solo developer to stop trying to make 'fetch' happen.
Re: The anatomy of a 2AM mental breakdown
#34Reverting your own code, but still using a broken PostHog update from that same day? For me, the lesson is to make sure that I can revert everything, including dependencies.
Re: The anatomy of a 2AM mental breakdown
#35Great post, but kind of buries the lede: PostHog is having a CrowdStrike moment.
This outage was definitely disruptive and we shouldn't have let this happen. We will be doing a full post mortem write up, but this affected a small percentage of our users, so the comparison with Crowdstrike isn't fair.
Re: The anatomy of a 2AM mental breakdown
#36https://github.com/PostHog/posthog-js/blob/759829c67fcb8720f...
The biggest lesson here is, if you're writing a popular library that monkey-patches global functions, it needs to be really well tested.
There's a difference between "I'll throw posthog calls in a try/catch just in case" and "With posthog I literally can't make fetch() calls with POST"
Re: The anatomy of a 2AM mental breakdown
#37Re: The anatomy of a 2AM mental breakdown
#38Use better tools? Know better your tools? Know better how to debug? Add yet another tool to detect the error?
In all big companies where I worked, at the end of such an event, it boiled down to answer the 3 questions: - what happened?
- why did it happen?
- what do we do so it does not ever happen again?
Re: The anatomy of a 2AM mental breakdown
#39> This is no good. Let me just try reverting to a version from a month ago. Nothing. Three months ago? Nothing. Still failing. A year ago? Zilch. Reverting your own code, but still using a broken PostHog update from that same day? For me, the lesson is to make sure that I can revert everything, including dependencies.
https://github.com/PostHog/posthog/issues/24471#issuecomment...
Though you can opt to bundle it yourself:
https://github.com/PostHog/posthog/issues/24471#issuecomment...
Re: The anatomy of a 2AM mental breakdown
#40"Maybe PostHog, I have the api_key blanked out locally to reduce costs" Come on, if POST requests work locally and not on PROD, isn't this an obvious place to start?