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 Nov 3, 2023
1 parent 57a4cef commit f86706a
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 unremovable: %s requested (%.4g%% of allocatable) is above the scale-down utilization threshold", node.Name, utilInfo.ResourceName, utilInfo.Utilization * 100)
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 requested is %.4g%% of allocatable", node.Name, utilInfo.ResourceName, utilInfo.Utilization * 100)

return simulator.NoReason, &utilInfo
}
Expand Down

0 comments on commit f86706a

Please sign in to comment.