diff options
author | Jon Bratseth <bratseth@oath.com> | 2020-03-16 23:00:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 23:00:10 +0100 |
commit | de56e1e1b2e0008fb9d0f5e950bb0f7ececdbccf (patch) | |
tree | a9064c98182c21476253c88f931f6a66a268614c /node-repository | |
parent | ffd8a943d73da17bd726e26d7892dde36276b0f2 (diff) |
Update node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/AutoscalingMaintainer.java
Co-Authored-By: Valerij Fredriksen <freva@users.noreply.github.com>
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/AutoscalingMaintainer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/AutoscalingMaintainer.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/AutoscalingMaintainer.java index db1ef6e4ca2..c664a9a1ad8 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/AutoscalingMaintainer.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/AutoscalingMaintainer.java @@ -60,7 +60,7 @@ public class AutoscalingMaintainer extends Maintainer { if (lastLogTime == null || lastLogTime.isBefore(nodeRepository().clock().instant().minus(Duration.ofHours(1)))) { int currentGroups = (int) clusterNodes.stream().map(node -> node.allocation().get().membership().cluster().group()).distinct().count(); ClusterSpec.Type clusterType = clusterNodes.get(0).allocation().get().membership().cluster().type(); - target.ifPresent(t -> log.info("Autoscale: " + application + clusterType + " " + clusterId + + target.ifPresent(t -> log.info("Autoscale: " + application + " " + clusterType + " " + clusterId + " from " + toString(clusterNodes.size(), currentGroups, clusterNodes.get(0).flavor().resources()) + " to " + toString(t.nodes(), t.groups(), t.advertisedResources()))); lastLogged.put(new Pair<>(application, clusterId), nodeRepository().clock().instant()); |