Add some sleep between each retry to set container's oom scroe

This commit is contained in:
Jun Gong 2016-12-01 19:28:44 +08:00
parent aef15aa875
commit 3e85675668

View File

@ -25,6 +25,7 @@ import (
"path"
"path/filepath"
"strconv"
"time"
cmutil "k8s.io/kubernetes/pkg/kubelet/cm/util"
@ -72,6 +73,7 @@ func applyOOMScoreAdj(pid int, oomScoreAdj int) error {
}
glog.V(3).Info(err)
time.Sleep(100 * time.Millisecond)
continue
}
return nil