You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could use something like https://github.com/uber-go/automaxprocs to fix this. Or we could explicitly set GOMAXPROCS env variable in our yamls to match set quotas, but that won't work well if operators change the limits. Or we could wait for upstream Go to fix this (See linked issue above), but it looks like this is no longer landing soon.
I think personally https://github.com/uber-go/automaxprocs seems like a reasonable approach here since it copes better with someone using the operator to bump cpu quotas, but would like to see if anyone has concerns with that before PRing :-)
Expected Behavior
GOMAXPROCS for controllers is correctly set when deployed in a container with a cpu limit.
Actual Behavior
Container GOMAXPROCS are set as if they have access to all the cpus on the host
Steps to Reproduce the Problem
Some context/other threads:
GOMAXPROCS
cfs-aware onGOOS=linux
golang/go#33803 (Golang issue)GOMAXPROCS
does not work properly in Container environment prometheus/prometheus#6413Proposed solution:
We could use something like https://github.com/uber-go/automaxprocs to fix this. Or we could explicitly set GOMAXPROCS env variable in our yamls to match set quotas, but that won't work well if operators change the limits. Or we could wait for upstream Go to fix this (See linked issue above), but it looks like this is no longer landing soon.
I think personally https://github.com/uber-go/automaxprocs seems like a reasonable approach here since it copes better with someone using the operator to bump cpu quotas, but would like to see if anyone has concerns with that before PRing :-)
/assign @vagababov @markusthoemmes mattmoor
The text was updated successfully, but these errors were encountered: