this post was submitted on 11 Nov 2024
46 points (96.0% liked)

Ask Lemmy

26916 readers
1796 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try !politicaldiscussion@lemmy.world


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

(Cloud computing platforms with auto-scaling functionality)

you are viewing a single comment's thread
view the rest of the comments
[–] jlh@lemmy.jlh.name 10 points 6 days ago* (last edited 6 days ago) (2 children)

If your scale is right, both Hetzner and Digital Ocean support the Kubernetes autoscaler.

https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner

https://docs.digitalocean.com/products/kubernetes/how-to/autoscale/

Digital Ocean is super easy for beginners, Hetzner is a bit more technical but like half the cost.

This only outweighs the per-node overhead though if you're scaling up/down entire 4vcpu/8gib nodes and/or running multiple applications that can borrow cpu/ram from each other.

If you're small scale, microVMs like Lambda or fly.io are the only way to go for meaningful scaling under 4vcpu/8gib of daily variation. Also, at that scale, you can ask yourself if you really need autoscaling, since you can get servers that big from Hetzner for like $20/month. Simple static scaling is better at that scale unless you have more dev time than money.

[–] gregor@gregtech.eu 6 points 6 days ago (1 children)

Interesting, I already used Hetzner for my current VPS. I'll look into the stuff you listed, thanks!

[–] jlh@lemmy.jlh.name 3 points 6 days ago* (last edited 6 days ago)

Go for it!

Hetzner currently doesn't have a managed kubernetes option, so you have to set it up manually with Terraform, but there are a few terraform modules out there that have everything you need. The rumor is that they are working on a managed kubernetes offering, so that will be something simpler in the future.

Their api is compatible with all the Kubernetes automation, so all the autoscaling stuff is all automatic once you have it set up, and bullet-proof. Just use the k8s HPA to start and stop new containers based on cpu, or prometheus metrics if youre feeling fancy, and then kubernetes node autoscaler will create and delete nodes automatically for you based on your containers' cpu/ram reservations.

Let me know if you need documentation links for something.

[–] whithom@discuss.online 3 points 6 days ago (1 children)

I second digital ocean. I’m not a beginner, but I really appreciate their simplicity. They also have a cli option that can pretty much do everything the UI can do.

[–] jlh@lemmy.jlh.name 3 points 6 days ago

Their Terraform support is top notch too, better than AWS.