dwyl / learn-devops

🚧 Learn the craft of "DevOps" (Developer Operations) to Deploy your App and Monitor it so it stays "Up"!
GNU General Public License v2.0
418 stars 172 forks source link

hetzner #97

Open nelsonic opened 1 month ago

nelsonic commented 1 month ago

hetzner is back on our radar 💭 https://en.wikipedia.org/wiki/Hetzner

The baseline CX22 server with 4GB RAM is €4.55/month ($4.95 at the time of writing) this is nuts! 🥜 Crucially it has 20Tb of "transfer" (amount of data that can egress the server ...) To get a similar 4GB RAM instance from DigitalOcean is 24/month (almost 6x more!!) and that only comes with 4Tb of transfer!

https://www.hetzner.com/cloud/ with shared vCPU:

image

And with dedicated vCPU:

image

Compare this to what we're paying on DigitalOcean: https://www.digitalocean.com/pricing/droplets

image

And the prices get significantly cheaper once you go "dedicated": https://www.hetzner.com/dedicated-rootserver/

image

64 GB DDR4, 2 x 512 GB NVMe SSD for €44.76/month

This is kinda bonkers! 🤯 And cannot be ignored. 💭 What is the catch ...? 🤔

https://www.reddit.com/r/hetzner/comments/14k9xyw/why_so_many_bad_reviews_for_hetzner/

It appears that they aren't tolerant of people using their servers for illegal activities.

nelsonic commented 1 month ago
image image

Registered and setup 2FA:

image

Not going to have more time to dedicate to this tonight ... 😫 Gotta get to sleep so I can get work done tomorrow. 🛌

nelsonic commented 1 month ago

Continue: https://accounts.hetzner.com/account/dpa

nelsonic commented 1 month ago

Lame that this credit is only valid for one month. 🤦‍♂️

image
nelsonic commented 1 month ago

Read: https://www.reddit.com/r/hetzner/comments/vvozkh/comment/ifm9hyk/ https://techblog.nexxwave.eu/benchmark-between-cloud-servers-january-2024/

This is a very detailed and balanced benchmark and review. hetzner has the best performance in several areas most notably

The conclusion is that between all the "challenger" cloud providers, hetzner has the best price/performance:

image

Also worth noting the Data Egress Costs: https://getdeploying.com/reference/data-egress

image

So ... considering using kamal #96 with hetzner ... 💭 just wish I had infinite time to do DevOps .. ⏳

nelsonic commented 1 month ago

https://www.reddit.com/r/hetzner/comments/1auz00q/postgres_hosting_backup_strategy/

nelsonic commented 1 month ago

Don't know when I'm going to have time for this ... but continue at: https://console.hetzner.cloud/projects

nelsonic commented 1 week ago

At the time of writing, there are only 4 regions (6 data centers) for Hetzner cloud: https://docs.hetzner.com/cloud/general/locations/

image

I would obviously prefer if there were more locations, e.g: India, Australia and Africa like DO has: https://docs.digitalocean.com/platform/regional-availability/

image

But if we assume that we're only going to deploy our App/DB in 3 regions e.g: eu-central (fsn1), us-west (hil) and ap-southeast (sin), then we already have the regions we need for the foreseeable future. 💭

Not expecting too many paying customers based in Africa in the short-term simply because disposable incomes are not as high as US, EU and Asia. But we will keep a close eye on it and if there is a need, we will consider a multi-cloud deployment. e.g: GCP has Johnnesburg, São Paulo and Sydney: https://cloud.google.com/about/locations

image
nelsonic commented 1 week ago

Watch: Visiting Hetzner in Falkenstein: https://youtu.be/5eo8nz_niiM (3 years old) Insightful. They keep their costs low by custom building their servers in-house using ASUS motherboards and commodity components.

This is not GCP. But the setup looks decent and physical access control looks good. 💭

nelsonic commented 1 week ago

https://docs.hetzner.com/konsoleh/account-management/databases/postgresql/

nelsonic commented 4 days ago

Already making progress on Hetzner: https://github.com/dwyl/learn-postgresql/issues/114