Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public AutoscalingDeciderResult scale(Settings configuration, AutoscalingDecider
"view of job memory is stale given duration [{}]. Not attempting to make scaling decision",
mlMemoryTracker.getStalenessDuration()
);
return buildDecisionAndRequestRefresh(reasonBuilder);
return buildDecisionAndRequestRefresh(reasonBuilder.setSimpleReason(MEMORY_STALE));
}
// We need the current node loads to determine if we need to scale up or down
List<NodeLoad> nodeLoads = new ArrayList<>(mlNodes.size());
Expand Down Expand Up @@ -1163,7 +1163,7 @@ Optional<NativeMemoryCapacity> calculateFutureAvailableCapacity(PersistentTasksC

private AutoscalingDeciderResult buildDecisionAndRequestRefresh(MlScalingReason.Builder reasonBuilder) {
mlMemoryTracker.asyncRefresh();
return new AutoscalingDeciderResult(null, reasonBuilder.setSimpleReason(MEMORY_STALE).build());
return new AutoscalingDeciderResult(null, reasonBuilder.build());
}

private Long getAnalyticsMemoryRequirement(String analyticsId) {
Expand Down