How 12 factor app helped migrate +10k Postgres instances
summary
Divio migrates over 10,000 Postgres instances by applying 12-factor principles so upgrades become configuration and deploy problems not custom scripts. The process provisions a Postgres 13 instance, pg dump/restore from postgres 9.6 → 13, runs maintenance tasks as containerized worker processes (Celery/RabbitMQ), deploys by combining an unchanged build with new environment config (adopt=true), and then decommissions old instances. Runbooks are Python-driven automation; monitoring uses Sentry and Datadog. Outcome: automated at scale with a small runbook bug fixed early, cost and support risks removed.
AI-written summary · about
