Enable pod level cgroups by default#41349
Conversation
|
/lgtm |
|
/approve |
|
@k8s-bot kops aws e2e test this |
| # this is not defaulted to preserve backward compatibility. | ||
| # if EXPERIMENTAL_CGROUPS_PER_QOS is enabled, recommend setting to / | ||
| CGROUP_ROOT=${CGROUP_ROOT:-""} | ||
| #CGROUP_ROOT=${CGROUP_ROOT:-""} |
There was a problem hiding this comment.
Why not kill this? Or at least we should add a blank space after # as
# CGROUP_ROOT=${CGROUP_ROOT:-""}
|
/approve |
|
@k8s-bot kops aws e2e test this |
|
@derekwaynecarr I added a do not merge label to prevent this PR from going in to the next beta release. @dchen1107 wants this feature and node allocatable to be separated from CRI to make it easy to debug issues in beta releases. |
|
@k8s-bot kops aws e2e test this |
|
A release has been made with CRI. This PR is ready to go. |
|
Yes, this pr is ready to go. Thanks! |
8b1521e to
f70227c
Compare
|
so i just pushed a rebase, but i have no clue how the kops environment is configured. looking at the kops logs for kubelet on earlier runs: I see messages like the following: This tells me that the image they run does not have cpu and memory accounting on by default. Someone on the kops team needs to fix the image to enable accounting globally via /etc/systemd/system.conf (DefaultCPUAccounting=true DefaultMemoryAccounting=true). Further down the list of problems: This confuses me, its possible cgroup-root is being configured incorrectly. Are there any @kubernetes/kops-maintainers that can help fix their environments or debug this? We are trying to roll out a new cgroup topology, and node allocatable support, and that requires some requisite changes to the configuration of the OS that may or may not be present. |
|
Or can the @kubernetes/kops-maintainers set |
|
Ok, it looks like kops has cgroup-root set to docker. That won't work, I can use this as a case study to error better, but we need kops to change I think... |
|
@justinsb -- who is creating the |
8590bef to
bf8e846
Compare
|
If not running the systemd cgroup driver, I think it would be safe to ignore that entire mountpoint entirely. If latest test runs validate that theory, I will add that patch to this PR. |
Docker was. Honestly I don't understand this, and nor did anyone else when I asked at the time. But I probably should have asked you :-) So: What cgroups configuration should we be running in kubernetes (and therefore kops)? |
|
@justinsb -- you should run with i think for the bug exposed in this pr, it should be safe to ignore the systemd mountpoint entirely if you are not running the systemd cgroup driver. i will update, and see if the tests are happier. |
|
OK that is super helpful @derekwaynecarr - I'll make the change in kops. Also, if we should be using a particular cgroup driver, we can probably force it at least on the images we build - let me know! |
bf8e846 to
9e52a64
Compare
|
@justinsb -- ok, my last commit tested explicitly overriding --cgroup-root to / for kops, and as you can see kops e2e is happy on this pr now. if you can merge kubernetes/kops#1944 then I can remove the band-aid on this PR. |
386516a to
c319e74
Compare
|
@k8s-bot gce etcd3 e2e test this |
c319e74 to
43ae6f4
Compare
|
the kops pr to change cgroup-root to / has merged here: I dropped my temporary patch and have kicked off the PR to hopefully see us passing. |
|
[APPROVALNOTIFIER] This PR is APPROVED The following people have approved this PR: derekwaynecarr, eparis, vishh Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
yay, kops passed! |
|
Hooray - thanks for helping us clean up cgroups in kops @derekwaynecarr :-) |
|
@k8s-bot cvm gce e2e test this |
|
all green, retagging to merge today. |
|
Automatic merge from submit-queue (batch tested with PRs 41349, 41532, 41256, 41587, 41657) |
What this PR does / why we need it:
It enables pod level cgroups by default.
Special notes for your reviewer:
This is intended to be enabled by default on 2/14/2017 per the plan outlined here:
kubernetes/community#314
Release note: