mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Add some sleep between each retry to set container's oom scroe
This commit is contained in:
parent
aef15aa875
commit
3e85675668
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue