P9: Break your project on purpose

The board shows requests arriving at a front door and being passed to servers. In this project the same arrows carry a flood of requests, and then one server on the board stops answering.
On 31 January 2017, an engineer at GitLab was tired and working late. They meant to wipe a copy of the database on a spare server. They ran the command on the main server instead. About 300 GB of live data was gone before they stopped it. The team then reached for their backups, and every way of getting data back had a problem. Nobody had ever tried a full restore, so nobody knew. GitLab.com was down for about 18 hours.
You will not run a company database. You will have a small project in your portfolio, and a hiring engineer will ask a question that GitLab could not answer that night: “what happens when it breaks?” By the end of this lesson you will be able to load-test a small service, break it on purpose, fix what you find, and write the one page that shows a stranger you did it.
The history (optional)
The facts above come from GitLab’s own postmortem, published on 10 February 2017. The pg_dump backups used PostgreSQL 9.2 tools against a 9.6 database, and the storage bucket was empty. Disk snapshots were not on, and replication was never meant for disaster recovery. A snapshot taken about 6 hours earlier saved the day. About 5,000 projects, 5,000 comments and 700 user accounts were lost. The post names no person. It says “there was no ownership”, so nobody tested the restore.
Before you start. S2 · Build a Load Balancer gave you a service that spreads requests over servers and notices when one dies. When the neighbour is slow: timeouts, retries, breakers gave you the timeout (the longest you wait for one answer) and Little’s law (workers held equals calls per second times seconds each call is held). The Watchtower (Observability) gave you the habit of measuring a service with numbers and not with feelings. A repo a stranger can judge in two minutes showed what a stranger wants to find in your repo.