Closed work-chausat closed 2 years ago
既然lighthouse的func (p *offlineMutator) mutate拦截执行了:
newSplits = append(newSplits, splits[1], offlineKey) //offlineKey = "offline" newSplits = append(newSplits, splits[2:]...) newCgroupParent := strings.Join(newSplits, string(filepath.Separator)) newCgroupParent = "/" + newCgroupParent containerConfig.InnerHostConfig.CgroupParent = newCgroupParent
拦截执行以后,这些任务应该都在大框offline的cgroup父目录下面,那么,为啥还要有qos_k8s.go里面的moveOfflinePidsTogether?这里的moveOfflinePidsTogether是不是多余的?
从/kubepods/offline下面的子目录移动到/kubepods/offline这个根目录下面?为啥呀?根目录限制不住根目录下面的子目录吗?
既然lighthouse的func (p *offlineMutator) mutate拦截执行了:
拦截执行以后,这些任务应该都在大框offline的cgroup父目录下面,那么,为啥还要有qos_k8s.go里面的moveOfflinePidsTogether?这里的moveOfflinePidsTogether是不是多余的?