operator icon indicating copy to clipboard operation
operator copied to clipboard

VictoriaMetrics operator should be cgroup aware

Open uhthomas opened this issue 4 months ago • 1 comments

Go is not cgroup aware. This means the VictoriaMetrics operator will be throttled hard in containerised environments with CPU limits.

The below screenshot shows the container with a CPU limit in Kubernetes. The first half of the time series is on a 13600k, with 20 threads. The second half is when the machine changed to use an EPYC 7763 with 128 threads.

image

automaxprocs can use cgroups automatically.

uhthomas avatar Feb 26 '24 01:02 uhthomas

Hello @uhthomas , thanks for the issue! AFAIK the operator code itself doesn't use muti-thread to process resource objects, so I'm not sure the performance benefit here. Did you see some valid results with new GOMAXPROCS?

Haleygo avatar Feb 27 '24 07:02 Haleygo