mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 13:29:11 +01:00
Add log messages for target, underutilized nodes
This commit adds log messages to be printed whenever a node is identified as a target node from which the pods can be evicted or as an underutilized node to which the evicted pods can be scheduled, if at all. This should help with debugging as well as with letting the user know the identified nodes.
This commit is contained in:
@@ -115,8 +115,10 @@ func classifyNodes(npm NodePodsMap, thresholds api.ResourceThresholds, targetThr
|
||||
glog.V(1).Infof("Node %#v usage: %#v", node.Name, usage)
|
||||
|
||||
if IsNodeWithLowUtilization(usage, thresholds) {
|
||||
glog.V(1).Infof("Identified underutilized node: %v", node.ObjectMeta.Name)
|
||||
lowNodes = append(lowNodes, nuMap)
|
||||
} else if IsNodeAboveTargetUtilization(usage, targetThresholds) {
|
||||
glog.V(1).Infof("Identified target node: %v", node.ObjectMeta.Name)
|
||||
targetNodes = append(targetNodes, nuMap)
|
||||
} else {
|
||||
// Seems we don't need to collect them?
|
||||
|
||||
Reference in New Issue
Block a user