fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

@zeab limits have such a niche use case that it’s one of the very few things in kube you can do to shoot yourself in the foot. We went through this at my day job quite a while ago, addressing cpu throttling.

Requests are really the best way to go especially if you use any sort of autoscaling. Even then you can right size your workload requests to fit onto your nodes.

@elebertus that's been my sentiment as well. Outside of , other job orchestrators handles cpu limits how you would expect. But on k8s? It really likes to make you work. 😅

For cpu limits in k8s to work, it has to be some batch job that is meant to be short lived executions with exact resource definition of running that same type of job. Everything else, nope. 😅

@elebertus @zeab it is niche but in an multitenant environment, I’ve seen it used on workloads with a history of runaway errors to limit billing. That kind of bug should never make it to production so this would be a guard rail in a non-production environment.

@Basil404 @elebertus though knowing when you have such a problem is as important. And you wouldn't generally know cpu exhaustion right from the start. Especially if set prematurely.

I think on k8s, cpu limit tend to do more harm than good. It's not same as if it was . Where limits act a resource alloc, but allow workload to share allocation until congestion hits.

@Basil404 @zeab absolutely yeah. There’s relevant scenarios for limits. One cool thing about all of this is there’s been a lot of community driven comms and content around limits and requests, which I personally think highlights a benefit of an open source community. Love to see that stuff.