133 points · by freedomben · 3y ago · 100 comments
All that I can find left online is this [1], which is still informative, but not nearly as interesting as I remember the chat transcript being
[1] https://about.gitlab.com/blog/2017/02/10/postmortem-of-datab...
I can't even imagine the sinking feeling..
It's also pretty worrying that a single developer was doing work directly on production databases without a second person there to say "yeah, looks good". This is a big operational mistake, no matter how good you think you are.
Github by comparison has had more than 30 outages this year alone. https://www.githubstatus.com/
"Dev Deletes Entire Production Database, Chaos Ensues" https://youtu.be/tLdRBsuvVKc
> Locations: Google Compute Engine, Digital Ocean, Zendesk, AWS
that's some _impressive_ blast radius and I actually struggle to think what would cause that much damage
$ host cdn.artifacts.gitlab-static.net
Host cdn.artifacts.gitlab-static.net not found: 3(NXDOMAIN)
They must have used that same healthcheck for every single load-balancer or something, though, for it to nuke AWS, DO, and GCPMost of the entries look like batch job processing, either by gitlab or managing jobs in runners.
Perhaps authentication, which is mandatory when managing batch jobs including in third party nodes.
If auth goes down on any service, you'll see similar blast radius.
The incident review is updated in https://gitlab.com/gitlab-com/gl-infra/production/-/issues/1... I have added your feedback into https://gitlab.com/gitlab-com/gl-infra/production/-/issues/1...
(They start to ruin that, but lets say, the idea is still visible.)
If you plan on a GitLab mirror, including the Git repository and groups/projects, the direct transfer migration can be helpful https://about.gitlab.com/blog/2023/01/18/try-out-new-way-to-...
GitLab Geo can be an alternative for larger, high-availability setup requirements. https://docs.gitlab.com/ee/administration/reference_architec...
http://Xkcd.com/303 but for GitHub is down.
Incidents can have different types, i.e. when an application bug or performance regression is discovered, this can involve reverting MRs and rolling back releases. The Platform, Delivery group has a top-level responsibility for ensuring continuous delivery of the GitLab application software to GitLab SaaS, https://about.gitlab.com/handbook/engineering/infrastructure...
Other incidents may involve hardware or infrastructure failures, or a combination of both, infrastructure failure that renders GitLab application services unavailable. This requires cross-functional collaboration from infrastructure, product, engineering, etc. teams in the incident.
To get a better understanding here, it is helpful to review the incident management handbook https://about.gitlab.com/handbook/engineering/infrastructure...
Additional helpful information:
- The GitLab.com SaaS production architecture is documented in https://about.gitlab.com/handbook/engineering/infrastructure...
- The Monitoring of GitLab.com handbook provides insights into monitoring workflows, incident management, SLAs, etc. https://about.gitlab.com/handbook/engineering/monitoring/
- Runbooks https://about.gitlab.com/handbook/engineering/infrastructure...
For the current incident discussed in this HN thread, the review issue can be followed in https://gitlab.com/gitlab-com/gl-infra/production/-/issues/1... to learn more.
But even for just version control for most use cases you need some common remote for people to push and pull to. Even a bare git setup has the potential of going down and putting people in the exact same boat that they are in now (they can commit locally, but can't push).
All these startups who experience a 100% dev outage when github or gitlab go down are fundamentally broken.
On this I totally agree. Although if you have deploys fully automated and gated behind CI/CD checks (which in many cases is required for compliance), how do you structure things such that a total outage of the CI/CD platform doesn't knock the dev cycle?
Fetching changes...
Initialized empty Git repository in /builds/jjg/cptutils/.git/
Created fresh repository.
fatal: unable to access 'https://git-us-east1-d.ci gateway.int.gprd.gitlab.net:8989/jjg/cptutils.git/':
Failed to connect to git-us-east1-d.ci-gateway.int.gprd.gitlab.net
port 8989 after 132297 ms: Couldn't connect to server remote: ERROR: The git server, Gitaly, is not available at this time.
What a drag... I guess I'll just commit locally... bah! Friday anyway!https://github.com/tylerjgarland/git2git
lol. I used it to migrate my gitlab to github on the last outage.
...and more importantly who gets to work so that there isn't a failure.
Next to all-in-one packages provided with the Omnibus package on Linux https://docs.gitlab.com/omnibus/ and in containers https://docs.gitlab.com/ee/install/docker.html you can also install GitLab into Kubernetes clusters using the Operator https://docs.gitlab.com/operator/ or Helm Chart. https://docs.gitlab.com/charts/
Most of GitLab.com SaaS is deployed on Kubernetes using the GitLab cloud-native Helm chart (with a few exceptions). More details in https://about.gitlab.com/handbook/engineering/infrastructure...
It's way more fun to debug than some single-monster code base with a complete stack-trace from the single-process. That basically tells you exactly where to look and how it got there! What fun is that, where's the adventure!?