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
GOMAXPROCS: 96 // The host CPUs number, I'd like to see the values of `containers.requests` 4
In this case, the Go program scheduling or GC pause may cost too long.
The library automaxprocs has solved the problem that Go programs cannot set GOMAXPROCS correctly in the case of Containers. Should we introduce this library to make Prometheus work as expected in the Kubernetes environment, or is it not appropriate to import this library because of other considerations?
The text was updated successfully, but these errors were encountered:
@brian-brazil Good catch. I have noticed the issue 33803 that will be fixed on go 1.14. Indeed, It's better to be fixed in Golang. Good news for Gopher.
I think you can safely re-open this issue and include uber/automaxprocs
The issue is unlikely to be resolved at the runtime level any time soon.
It was moved to backlog (from 1.14) and it's actually not trivial to implement in runtime pkg itself since you have... well pretty much nothing.
NB: the env variable works, what doesn't is the default value the runtime chooses in the absence of this variable.
In Kubernetes env, the containers spec as follows:
In Runtime Information of Prometheus:
In this case, the Go program scheduling or GC pause may cost too long.
The library automaxprocs has solved the problem that Go programs cannot set
GOMAXPROCS
correctly in the case of Containers. Should we introduce this library to make Prometheus work as expected in the Kubernetes environment, or is it not appropriate to import this library because of other considerations?The text was updated successfully, but these errors were encountered: