ztelur commented on issue #313: URL: https://github.com/apache/dubbo-go-pixiu/issues/313#issuecomment-989854886
It seems that gopsutil doesn't work well in k8s too. stackoverflow answer recommand https://github.com/uber-go/automaxprocs. ``` import _ "go.uber.org/automaxprocs" func main() { // Your application logic here. } ``` pixiu code is like below ``` if limitCpuNumber <= 0 { runtime.GOMAXPROCS(runtime.NumCPU()) } else { runtime.GOMAXPROCS(int(limitCpuNumber)) } ``` Do we need assign limitCpuNumber by command argument ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
