0zerodowntime.in

Note

GitHub: a schema migration ran into the weekly peak

· Source dated 2026-05-04 · 1 min read

An online schema migration ran for hours without problems. Then weekly peak traffic arrived, and the database ran out of connections.

GitHub availability report: May 2026 (GitHub Blog) ↗

GitHub’s May report says a routine online schema migration on a large, busy table ran for several hours without a problem on 4 May. As traffic grew toward the weekly peak, the migration and normal traffic together used all the database connections. Pull requests were red for about an hour. Detection took about three minutes. When the team paused the migration, services recovered.

The fixes: run large migrations in low-traffic windows, throttle them by live load, and add circuit breakers that pause a migration when latency or connection use is too high.

Our opinion. We think “online” means the migration can run with traffic, not that it can run at any time. A long migration must look at the database it is running on and stop by itself. We would also not start one that will still be running at the next peak.

databasemigrationsmysql