Live data from Hacker News

Migrating from AWS to Hetzner

digitalsociety.coop

641–643 of 643 posts

Re: Migrating from AWS to Hetzner

#641

I finally started migrating our app from Heroku to Hetzner. Started by moving Postgres, and boy, what a difference in performance. I pay 1/5th of what I previously paid, and performance is through the roof. Like, as if we had rewritten our Rails app in Rust (metaphorically speaking). I know that in theory you get much more from managed postgres than a simple self-managed server, but I have pgbouncer and Wal-G set up,…

>. I pay 1/5th of what I previousl,,, For now?

Why for now? I see zero reason why that should change.

It's not like Heroku was zero maintenance. I often ran into resource limits. I did a fair amount of optimisation on jemalloc to make sure Rails didn't run into Heroku's ridiculously low RAM limits because of loading too many ActiveRecord objects. Yeah, sure, I should probably paginate better, but now I have so much RAM it literally doesn't matter.

Heroku also regularly asked me to schedule DB maintenance. Before I paid for the expensive DB, that meant the connection string could also change, which meant I had to redeploy my AI workers (i.e. background jobs that need a GPU) that were hosted outside of Heroku. Now it still warns me that the connection string would change, but it somehow didn't anymore. Ah well. All problems of the past.

The solution in Heroku was always to throw more money at it, and the increments were quite serious. With Hetzner, I now have massively overprovisioned servers that cost a fraction.

Re: Migrating from AWS to Hetzner

#642
post #639
post #250

My last co runs hundreds of servers with Hetzner for a semi-stateless workload. With AWS, the pricing let alone the performance wouldn't be viable. At some point we also used Heroku for the application (more recently EKS); the combo drove folks nuts as, it was "weird".

Are these dedicated servers or VPS?

dedicated

Re: Migrating from AWS to Hetzner

#643
First of all, thx for documenting the mogration. That is very interesting.

Your monthly bill is smaller now. But how many hours did you invest into the migration? And how many hours more per month do you put in maintenance? I mean you have to take care of security patches now and many more things.

You used AWS in the most expensive way. Of course its expensive if you use on demand offering. You can cut costs by using Spot instances for ECS. Another way is by using reserved instances for ECS. If you pay 3 years upfront, you can get discounts up to 75%. That works for ECS and RDS.

I'm running ZEIT.IO on AWS and I had similar problems. But I don't want to manage VMs. As soon I have to SSH into something, I have a ton of problems I don't want to deal with.

Post reply on HN