-
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
Value specified in CPUWeight is out of range: unknown #12266
Comments
My bad. settin cpu to 1 is not a good idea |
Hi @dhpowrhost! Yeah the minimum value was set to 1 in #8996 but whether a given task driver can handle that is up to the third-party engine (Docker in this case), which we don't currently have a way of validating. |
Yeah, you are right. The thing is however that it did work in Debian 11 and Ubuntu 20.04, so docker must have changed something. Thank you for the clairification. |
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. |
Nomad version
Nomad v1.2.6 (a6c6b47)
Operating system and Environment details
Ubuntu 22.04 Jammy Jellyfish
Issue
When running a docker job with CPU resources set the allocation fails with an API error
Reproduction steps
Define job with docker as task driver and resources { cpu = 1 } set
Expected Result
The docker container will be allocated 1 CPU
Actual Result
The allocation fails.
Job file (if appropriate)
job "whoami" {
datacenters = ["dc1"]
group "demo" {
count = 2
}
}
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: