this post was submitted on 11 Nov 2024
47 points (96.1% liked)

Ask Lemmy

26890 readers
1691 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 [email protected]


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 [email protected] or [email protected]. 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 [email protected]. 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
[–] [email protected] 10 points 4 days ago* (last edited 4 days ago) (4 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.

[–] [email protected] 6 points 4 days ago (1 children)

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

[–] [email protected] 3 points 4 days ago* (last edited 4 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.

load more comments (2 replies)