Tencent / caelus

Set of Kubernetes solutions for reusing idle resources of nodes by running extra batch jobs
Other
344 stars 83 forks source link

离线大框的一个问题 #48

Closed work-chausat closed 2 years ago

work-chausat commented 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是不是多余的?

work-chausat commented 2 years ago

从/kubepods/offline下面的子目录移动到/kubepods/offline这个根目录下面?为啥呀?根目录限制不住根目录下面的子目录吗?