From f86706a51796bed38dcc2887e67e50904f4c8014 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..78232186511c 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 (%.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 }