VictoriaMetrics / operator

Kubernetes operator for Victoria Metrics
Apache License 2.0
422 stars 140 forks source link

chore: use Linux container CPU quota #876

Closed uhthomas closed 1 month ago

uhthomas commented 6 months ago

Go is not cgroup aware and by default will set GOMAXPROCS to the number of available threads, regardless of whether it is within the allocated quota. This behaviour causes high amount of CPU throttling and degraded application performance.

Fixes: #875

f41gh7 commented 6 months ago

WDYT about using https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/lib/cgroup/cpu.go ?

f41gh7 commented 1 month ago

Thank you for your time and PR.

Closing it with comment https://github.com/VictoriaMetrics/operator/issues/875#issuecomment-2272229935