π₯What to do during Emergencies
Last updated
Last updated
We've recently experienced a DDoS attack, but an emergency can also be a faulty code change or unexpected downtime (Vercel, AWS, ...)
Keep a cool head
Gather as much information and open a thread titled: "[Outage]: XYZ"
Research the Primary and Secondary Owners (see Areas of Expertise: https://cal.com/open)
If you are an owner, expect to drop whatever you are doing right now.
If you are working on an equally important ticket or are OOO, find another expert.
If youβre unsure of which task has more priority, contact Bailey, Peer, Keith, CiarΓ‘n
If you do not have access to prod and suspect it will be needed to resolve the issue, contact Peer, Bailey, Keith, Zomars, Alex, Morgan or Erik immediately.
Update the Cal.com Status Page to inform users that we are investigating a reported outage and inform leadership, support and marketing teams to post on Twitter and Slack.
Important: Our primary objective is to restore service to our users quickly. Even before looking for root cause, ask yourself, "would a rollback to the previous version of Cal.com potentially fix this issue and not cause other problems?"
If rolling back seems like a legitimate option to restore service and there will not be other negative side effects (e.g. rolling back introduces other critical bugs that have been fixed) do the rollback and see if service is restored.
Example: A revert of https://github.com/calcom/cal.com/pull/12019 is what ultimately restored service for our booking page issues in negative UTC offset regions on October 23-24, 2023. Finding that this was the culprit was quite challenging due to other circumstances regarding idle DB connections and Cloudflare outages but it's a good reminder that by asking ourselves the question of "can we just rollback to the previous version" before trying to going deep to find the root cause, we might be able to bring service back to our users faster.
If a rollback is not a legitimate option, start to research root cause.
Once the root cause is found, update Cal.com Status Page to inform users that we are currently working on a fix.
Keep the Threads thread up-to-date on all steps that have been taken, so other people know what to search for.
e.g. "Database not affected, just checked the logs"
e.g. "Vercel is reporting a downtime, see https://vercel-status.com"
e.g. "I can reproduce the issue locally, I am now rolling-back our last commit"
If you are approaching end-of-the-day and the problem is still ongoing, find a new owner and explain what steps you would've tried next.
Once service has been restored, update Cal.com Status Page to inform users and update the Thread with the verification steps you took to ensure service was restored.
We need to see what was checked as part of giving the green light that everything is back to normal so that in the event everything is not actually back to normal or if the outage arises again, we'll be able to add further verification steps to ensure service is restored.
Keep a cool head. This too shall pass.