We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Laurent Demailly • 1 year ago
CFS throttling

There is no such thing. cgroups does throttling and in k8s cpu limits are to be avoided as they waste resources and gets your application throttled.

Short summary:
- Don't use cpu limits - do use memory limits (memory isn't elastic and OOM killer will kill the wrong one without limits)
- Go application must set GOMAXPROCS because otherwise the runtime will use the host's number of cpu causing way too many threads - use 2x the request.
- Don't use automaxprocs etc... just set it in the env using ref of request or just by hand to 2x