diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2020-02-22 14:37:12 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2020-02-22 14:37:12 +0100 |
commit | 6b3dceee95d17c5693aa65e248f16b880d9cde2f (patch) | |
tree | f307af4591905c86d29887c152ece074f4a42399 | |
parent | 718b7a22f1fe96ca955a5b851143c505bf68dac3 (diff) |
Cleanup
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java index 1d34693dc67..3c4ee095501 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java @@ -73,13 +73,11 @@ public class Autoscaler { Optional<Double> diskLoad = averageLoad(Resource.disk, cluster, clusterNodes); if (cpuLoad.isEmpty() || memoryLoad.isEmpty() || diskLoad.isEmpty()) return Optional.empty(); - System.out.println(" Cpu load " + cpuLoad.get() + " memory load " + memoryLoad.get() + " disk load " + diskLoad.get()); Optional<ClusterResourcesWithCost> bestAllocation = findBestAllocation(cpuLoad.get(), memoryLoad.get(), diskLoad.get(), currentAllocation, cluster); - System.out.println(" Best allocation: " + bestAllocation); if (bestAllocation.isEmpty()) return Optional.empty(); if (closeToIdeal(Resource.cpu, cpuLoad.get()) && @@ -95,10 +93,8 @@ public class Autoscaler { Optional<ClusterResourcesWithCost> bestAllocation = Optional.empty(); for (ResourceIterator i = new ResourceIterator(cpuLoad, memoryLoad, diskLoad, currentAllocation); i.hasNext(); ) { ClusterResources allocation = i.next(); - System.out.println(" Considering " + allocation); Optional<ClusterResourcesWithCost> allocatableResources = toAllocatableResources(allocation, cluster); if (allocatableResources.isEmpty()) continue; - System.out.println(" : Candidate: " + allocatableResources); if (bestAllocation.isEmpty() || allocatableResources.get().cost() < bestAllocation.get().cost()) bestAllocation = allocatableResources; } |