-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lookup devices cgroup path of target process
At least starting from OpenShift v3.6, origin/k8s creates its own cgroup hierarchy for QoS purposes: # find /sys/fs/cgroup/devices/ -type d -iname 'kube*' /sys/fs/cgroup/devices/kubepods.slice /sys/fs/cgroup/devices/kubepods.slice/kubepods-besteffort.slice /sys/fs/cgroup/devices/kubepods.slice/kubepods-burstable.slice Sub-slices are created per pod in either directories depending on the QoS class assigned. This means that the hardcoded `system.slice` path will not be correct for pod processes. One can reproduce this from a simple `oc cluster up` setup. This patch basically fixes the related TODO in the codebase to make the hook work in the OpenShift case. Closes #4
- Loading branch information
1 parent
535cd3c
commit 7968b1c
Showing
1 changed file
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters