Skip to content

Commit

Permalink
Disambiguate the resource usage node removal eligibility messages
Browse files Browse the repository at this point in the history
  • Loading branch information
shapirus committed Oct 24, 2023
1 parent 57a4cef commit ceb650a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster-autoscaler/core/scaledown/eligibility/eligibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ func (c *Checker) unremovableReasonAndNodeUtilization(context *context.Autoscali
return simulator.UnexpectedError, nil
}
if !underutilized {
klog.V(4).Infof("Node %s is not suitable for removal - %s utilization too big (%f)", node.Name, utilInfo.ResourceName, utilInfo.Utilization)
klog.V(4).Infof("Node %s is not suitable for removal - %s requests allocation too high (%f)", node.Name, utilInfo.ResourceName, utilInfo.Utilization)
return simulator.NotUnderutilized, &utilInfo
}

klogx.V(4).UpTo(utilLogsQuota).Infof("Node %s - %s utilization %f", node.Name, utilInfo.ResourceName, utilInfo.Utilization)
klogx.V(4).UpTo(utilLogsQuota).Infof("Node %s - %s requests allocation %f", node.Name, utilInfo.ResourceName, utilInfo.Utilization)

return simulator.NoReason, &utilInfo
}
Expand Down

0 comments on commit ceb650a

Please sign in to comment.