-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Cgroup 'cpu.cfs_quota_us' error on container creation when CPU limit is low #23113
Comments
It works with
So now that I understand better, it will always fail with |
cc @vishh |
I tried to reproduce this on my local with HEAD:
create pod with yaml:
and pod status:
and then I tried to reproduce directly with docker:
looks like a little bit tricky. |
@adohe did you |
A few details would help here:
There have been some fixes in RHEL based distros to solve this problem, so it may be related. |
openshift/origin#6822 discusses similar problems. projectatomic/docker#76 (comment) is fix we are carrying/evaluating. |
This issue may need more investigation. Even with the Delegate=yes patch, I am seeing this. However, this isn't isolated to the systemd cgroups driver. I see the same issue with the cgroupfs driver as well. I will check if there is some kernel limitation that is preventing setting these values. |
@derekwaynecarr the OS is CoreOS 983.0.0 with Docker 1.10.2 (preinstalled). It uses the |
@antoineco Could you try the cgroupfs driver as well?
|
Here is the reproduction, isolated from docker.
|
1 millisecond is the minimum value for CFS quota. We need to fix it in code. |
@vishh Thanks! That explains it. |
I can post a patch for that. |
@vishh yeah, makes sense to catch this in runc/libcontainer. |
For posterity, it is documented here https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt |
This could also be caught here in kubernetes to prevent even trying to spawn a container. |
@mrunalp: Thats what I intend on doing. It might be worth validating in libcontainer though :) |
@vishh I'll add that :) |
But @adohe mentioned he can not reproduce it on HEAD with a CPU limit of 5m. It means on head to CpuQuota is set properly (or '0') |
After upgrading my environment from Kubernetes 1.1.8 to Kubernetes 1.2.0, I see pods creation failing with the following resource limits set:
Translated to Docker container info:
The error message is:
I can reproduce this by creating containers manually:
Kubernetes should check that the defined CPU restrictions are valid before attempting to create containers.
The text was updated successfully, but these errors were encountered: