-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CPU hard limit in Nomad - Fix #3915
Comments
cc: @schmichael @diptanu |
Here is the doc for cpu resources: the cpu.cfs_period_us
|
Thanks again @jaininshah9 ! |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
2 weeks ago, I created a PR which allows users to pass a flag via which you can enable cpu_hard_limit.
PR: #3825
At that time, the change looked good to me and it was merged into master.
We added this commit in our Nomad version we have running and found out that it is not working as expected. The CPU usage gets constraint and never uses the full capacity.
Reproduction steps
We have identified a fix for this
Fix:
Below is the change we need in the formula for calculating the CPUQuota to fix that issue.
With the fix, if we have a 16 CPU @ 2.7 GHz and want to add multiple tasks which use 100% CPU, 200%, CPU, 400% CPU and 50% CPU, we make the CPU value as below:
100% CPU - 2700
200% CPU - 5400
400 CPU - 10800
50% CPU - 1350
Nomad version
master branch
Operating system and Environment details
Linux - Ubuntu and Centos
Thought??
The text was updated successfully, but these errors were encountered: