r/SoftwareEngineering • u/fagnerbrack • Jul 11 '26
Migrating from DigitalOcean to Hetzner: From $1,432 to $233/month With Zero Downtime
https://isayeter.com/posts/digitalocean-to-hetzner-migration/
25
Upvotes
2
u/ThisIsJulian Jul 11 '26
Nice write up.
I am wondering: Any reasons why you didn’t use TerraForm/OpenTofu/Pulumi for the DO settings?
I recently started using TF more and knowing infra configuration (in my case DNS + Hetzner’s LB, Firewall, VPC, Buckets and Servers) is locked down in a file and replayable gives you a special kind of peace of mind
(Sorry about formatting; I am on mobile)
4
u/fagnerbrack Jul 11 '26
Core Takeaways:
A production move from a DigitalOcean droplet to a more powerful Hetzner AX162-R dedicated server cut costs by $14,388 a year while serving 248GB of MySQL across 30 databases, 34 Nginx sites, GitLab EE, and Neo4j. The six-phase plan installed the full stack, cloned web files with rsync, and used mydumper/myloader plus MySQL master-slave replication to keep data in sync. Tricky moments included a 5.7-to-8.0 upgrade fixing the mysql.user table and sys schema, setting IDEMPOTENT mode to skip duplicate keys, and revoking SUPER privileges that bypassed read_only. The old server's Nginx became a reverse proxy during DNS cutover (TTLs dropped to 300s), achieving zero downtime in ~24 hours. All Python scripts are open-sourced.
If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments
2
u/mainali_biraj Jul 11 '26
Why did you choose Hetzner?
1
u/inslee2 Jul 11 '26
Good read!
1
u/johnvanderlinde Jul 17 '26
I’ve just started using digital ocean for my first VPs. Is there any reason why an individual would benefit from migrating away?
1
u/[deleted] Jul 12 '26
[removed] — view removed comment