Skip to content

Commit

Permalink
feat(iops): Added iops setting for guaranted qos pods (#6)
Browse files Browse the repository at this point in the history
Signed-off-by:  Abhranil <[email protected]>
  • Loading branch information
abhranilc authored Apr 23, 2021
1 parent f80e8f9 commit 7f23b1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/device/iolimit/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ func getContainerdPodCGSuffix(podUid string) string {
func getContainerdCGPath(podUid string) (string, error) {
kubepodsCGPath := baseCgroupPath + "/kubepods.slice"
podSuffix := getContainerdPodCGSuffix(podUid)
podCGPath := kubepodsCGPath + "/kubepods-besteffort.slice/kubepods-besteffort-" + podSuffix + ".slice"
podCGPath := kubepodsCGPath + "/kubepods-" + podSuffix + ".slice"
if helpers.DirExists(podCGPath) {
return podCGPath, nil
}
podCGPath = kubepodsCGPath + "/kubepods-besteffort.slice/kubepods-besteffort-" + podSuffix + ".slice"
if helpers.DirExists(podCGPath) {
return podCGPath, nil
}
Expand Down

0 comments on commit 7f23b1b

Please sign in to comment.