Skip to main content

How Discord automated its database chores with a control plane

· Do Minh Tuan · Developer Corner 💻

How Discord automated its database chores with a control plane

Discord published how it rebuilt its database operations around an internal tool called the Scylla Control Plane. The databases in question run on ScyllaDB, a store built for low-latency access, and Discord runs a lot of clusters. The control plane automates work that used to take the infrastructure team days of manual effort, and turns some of it into a single click.

The cost of manual database work rarely shows up in a dashboard. It shows up as a week that disappears into maintenance, or as the one engineer who knows the right order of operations and is therefore never allowed to take leave. Automation posts like this usually get read as a story about scale. The more useful reading is that it is a story about attention.

What orchestration actually buys you

Orchestration means a system decides which machine does what, when a backup runs, when a node is replaced, when storage is expanded, rather than a person typing commands in order. On one cluster that is overkill. On hundreds it is the difference between a process and a pile of muscle memory.

Discord's version coordinates the clusters so that routine work happens without a ticket. The specific wins, as I read them, are mundane. A backup that always runs. A node replacement that follows the same steps every time. A scaling action that does not depend on someone remembering the right flag.

Discord's framing is that a comparatively small infrastructure team can manage a very large amount of user data. I believe that, and I would add the part the post implies but does not dwell on. The team's job changed. Instead of operating databases, they operate the tool that operates databases. That is a different skill, and not every strong database admin wants it.

The part that scares me

The failure mode of a control plane is that it becomes a single point of understanding. When one system knows how to do everything, nobody on the team knows how to do anything by hand. That is fine until the control plane is broken, which is exactly when you need the manual procedure.

So I would insist on two things that the post does not mention. Keep a documented manual path for the three operations you cannot live without, and test it once a quarter. And make the control plane explain itself. When it schedules a failover, the log should say why in a sentence a person can read at 3am, rather than which task ran.

The other risk is drift. A control plane that automates the wrong procedure does it consistently and at scale. The first time an automated backup restores the wrong snapshot, you learn how much trust you placed in a default nobody reviewed.

What small teams can take from it

The scale is different, the principle is not. You do not need hundreds of clusters, and you do not need a control plane with a name. You need the boring tasks to happen without a person remembering them, every time, including the week everyone is busy.

For a small team that means scheduled backups with a restore test, a health check that pages someone when it fails, and a deployment script that is the only way to deploy. Three small pieces of automation, each one removing a class of human error.

The restore test is the one people skip. A backup you have never restored is a file you hope is a backup. Running a restore into a scratch environment once a month costs an hour and tells you whether the whole thing works.

On the tooling, a cron job and a shell script will do for years. It is tempting to reach for a platform with a dashboard before there is a single reliable backup, because the dashboard is easier to demo. It is also much less useful.

The post argues you avoid hiring database administrators and reduce downtime caused by human error. Both are plausible to me. I would be careful with the second. Automation removes typos and forgetfulness. It also introduces a new class of incident, the automation that does the wrong thing to every cluster at once, and that class is rarer but bigger.

The honest version, in my view, is that automation changes who is on call and what they are woken up for. It does not remove the need for someone who understands the database. It makes that person's time go further.

The other thing automation does not fix is ownership. If nobody on the team is accountable for database health, a control plane mostly makes the neglect more efficient. Somebody has to read the alerts, and somebody has to decide when a threshold is wrong. Discord clearly has that person. A smaller company often assumes the tool replaces the need for one.

What I would watch

Discord's write-up is a snapshot of a system that works. The interesting question is what happens in three years, when the people who built the control plane have moved on and the tool has accumulated the usual exceptions. Does the next team inherit something they can extend, or a black box with a wiki page from 2026?

That is the test I would apply to any internal platform. If the only person who can change it is the person who wrote it, the automation has moved the risk rather than removed it. Write the runbook while the system is fresh, and make the second engineer operate it before the first one leaves.

Written with AI assistance, reviewed and edited by Do Minh Tuan.