Hacker News new | ask | show | jobs
by rileymichael 16 days ago
> Setting your CPU limit to 1 in Kubernetes does not mean the container sees a single logical processor

that's incorrect, the jvm has been container aware for nearly a decade (https://bugs.openjdk.org/browse/JDK-8146115)

you are correct about the underlying scheduling. limits don't pin you to a core, you get quotas across all available

1 comments

Nit: if your requests are equal to limits, and an integer, and the static cpu manager is turned on inside Kubelet, then it will pin to core(s).

https://kubernetes.io/docs/tasks/administer-cluster/cpu-mana...

yeah, fair point. there's all sorts of knobs available to pin to cpus, numa alignment, etc.. my comment only covers vanilla workloads