More info in autoscaling advice
Hard to debug why autoscaling does or does not happen, add some more
info
@@ -72,17 +72,19 @@ public class Autoscaler {
if (scaledIn(clusterModel.scalingDuration(), cluster))
return Advice.dontScale(Status.waiting,
- "Won't autoscale now: Less than " + clusterModel.scalingDuration() +
+ "Won't autoscale " + cluster + " now: Less than " + clusterModel.scalingDuration() +
" since last resource change");
if (clusterModel.nodeTimeseries().measurementsPerNode() < minimumMeasurementsPerNode(clusterModel.scalingDuration()))
return Advice.none(Status.waiting,
- "Collecting more data before making new scaling decisions: Need to measure for " +
- clusterModel.scalingDuration() + " since the last resource change completed");
+ "Collecting more data before making new scaling decisions for " + cluster + ": Need to measure for " +
+ clusterModel.scalingDuration() + " since the last resource change completed, " +
+ clusterModel.nodeTimeseries().measurementsPerNode() + " measurements per node, " +
+ " need " + minimumMeasurementsPerNode(clusterModel.scalingDuration()));
if (clusterModel.nodeTimeseries().nodesMeasured() != clusterNodes.size())
return Advice.none(Status.waiting,
- "Collecting more data before making new scaling decisions: " +
+ "Collecting more data before making new scaling decisions for cluster " + cluster + ": " +
"Have measurements from " + clusterModel.nodeTimeseries().nodesMeasured() +
" nodes, but require from " + clusterNodes.size());
