Skip to content

Commit

Permalink
[release-1.19] LowNodeUtilization: log when a node is unschedulable
Browse files Browse the repository at this point in the history
  • Loading branch information
ingvagabund committed Sep 16, 2020
1 parent 2f0f8c2 commit 0ad86b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/descheduler/strategies/lownodeutilization.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ func classifyNodes(npm NodePodsMap, thresholds api.ResourceThresholds, targetThr
klog.V(2).Infof("Node %#v is over utilized with usage: %#v", node.Name, usage)
targetNodes = append(targetNodes, nuMap)
} else {
klog.V(2).Infof("Node %#v is appropriately utilized with usage: %#v", node.Name, usage)
if nodeutil.IsNodeUnschedulable(node) {
klog.V(2).Infof("Node %#v is unschedulable", node.Name)
} else {
klog.V(2).Infof("Node %#v is appropriately utilized with usage: %#v", node.Name, usage)
}
}
}
return lowNodes, targetNodes
Expand Down

0 comments on commit 0ad86b2

Please sign in to comment.