From 112abe942ff0a5c72b01fce4b4000a704a660f1b Mon Sep 17 00:00:00 2001 From: shapirus Date: Tue, 24 Oct 2023 23:38:45 +0300 Subject: [PATCH] Disambiguate the resource usage node removal eligibility messages --- cluster-autoscaler/core/scaledown/eligibility/eligibility.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster-autoscaler/core/scaledown/eligibility/eligibility.go b/cluster-autoscaler/core/scaledown/eligibility/eligibility.go index 2687cdffb2cc..8c001fcf6b52 100644 --- a/cluster-autoscaler/core/scaledown/eligibility/eligibility.go +++ b/cluster-autoscaler/core/scaledown/eligibility/eligibility.go @@ -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 (%.6g%% 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 %.6g%% of allocatable", node.Name, utilInfo.ResourceName, utilInfo.Utilization * 100) return simulator.NoReason, &utilInfo }