Commit 65d6a5c6 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #39455 from kubernetes/revert-39306-oom_score_adj

Automatic merge from submit-queue (batch tested with PRs 39486, 37288, 39477, 39455, 39542) Revert "Small improve for GetContainerOOMScoreAdjust" Reverts kubernetes/kubernetes#39306 This does not help current code healthy, let's revert it to avoid further confusing.
parents c03ec462 9712fe84
......@@ -72,8 +72,8 @@ func GetContainerOOMScoreAdjust(pod *v1.Pod, container *v1.Container, memoryCapa
return (1000 + guaranteedOOMScoreAdj)
}
// Give burstable pods a higher chance of survival over besteffort pods.
if int(oomScoreAdjust) >= besteffortOOMScoreAdj {
return int(besteffortOOMScoreAdj - 1)
if int(oomScoreAdjust) == besteffortOOMScoreAdj {
return int(oomScoreAdjust - 1)
}
return int(oomScoreAdjust)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment