in src/scaler/scaler-core/scaling-methods/base.js [54:68]
function getScaleSuggestionMessage(cluster, suggestedSize, scalingDirection) {
if (scalingDirection == AutoscalerDirection.NONE) {
return `no change suggested`;
}
if (suggestedSize == cluster.currentSize) {
return `the suggested size is equal to the current size: ${cluster.currentSize} ${cluster.units}`;
}
if (suggestedSize > cluster.maxSize) {
return `cannot scale to ${suggestedSize} because it is higher than MAX ${cluster.maxSize} ${cluster.units}`;
}
if (suggestedSize < cluster.minSize) {
return `Cannot scale to ${suggestedSize} because it is lower than MIN ${cluster.minSize} ${cluster.units}`;
}
return `suggesting to scale from ${cluster.currentSize} to ${suggestedSize} ${cluster.units}.`;
}