Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use Linux container CPU quota #876

Closed
wants to merge 1 commit into from

Conversation

uhthomas
Copy link

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

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: VictoriaMetrics#875
@f41gh7
Copy link
Collaborator

f41gh7 commented Feb 29, 2024

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

@f41gh7
Copy link
Collaborator

f41gh7 commented Aug 6, 2024

Thank you for your time and PR.

Closing it with comment #875 (comment)

@f41gh7 f41gh7 closed this Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VictoriaMetrics operator should be cgroup aware
2 participants