-
Notifications
You must be signed in to change notification settings - Fork 25.3k
[ML] Do not make autoscaling decision when memory is undetermined #90259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] Do not make autoscaling decision when memory is undetermined #90259
Conversation
Pinging @elastic/ml-core (Team:ML) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although it would be nice to assert that we always set both node size and tier size or neither of them (if that's possible without making a test fail - I might be missing a valid situation where it can happen).
...gin/ml/src/main/java/org/elasticsearch/xpack/ml/autoscaling/MlMemoryAutoscalingCapacity.java
Show resolved
Hide resolved
...ugin/ml/src/main/java/org/elasticsearch/xpack/ml/autoscaling/MlMemoryAutoscalingDecider.java
Outdated
Show resolved
Hide resolved
@elasticmachine update branch |
When a processor autoscaling decider was added in elastic#89645, an unwanted change of behaviour sneaked in. In particular, if we cannot determine required memory capacity, we previously returned `new AutoscalingDeciderResult(null)` where as we now return an autoscaling result with no memory capacity and whatever the result of the processor decider is. Previously, if we returned a result with null capacity, the cluster would remain as-is. Now, it is possible to cause unwanted scaling. This commit fixes this by checking if the memory decider result was undetermined and returns an empty result if so. Also, some logging warnings have been added to pop up scenarios that shouldn't happen like when the memory tracker is not called by the master node or it has no memory estimate for anomaly detection or analytics jobs.
e930a74
to
c31dbad
Compare
...ugin/ml/src/main/java/org/elasticsearch/xpack/ml/autoscaling/MlMemoryAutoscalingDecider.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
run elasticsearch-ci/part-1 |
…astic#90259) When a processor autoscaling decider was added in elastic#89645, an unwanted change of behaviour sneaked in. In particular, if we cannot determine required memory capacity, we previously returned `new AutoscalingDeciderResult(null)` where as we now return an autoscaling result with no memory capacity and whatever the result of the processor decider is. Previously, if we returned a result with null capacity, the cluster would remain as-is. Now, it is possible to cause unwanted scaling. This commit fixes this by checking if the memory decider result was undetermined and returns an empty result if so. Also, some logging warnings have been added to pop up scenarios that shouldn't happen like when the memory tracker is not called by the master node or it has no memory estimate for anomaly detection or analytics jobs.
💚 Backport successful
|
…0259) (#90335) When a processor autoscaling decider was added in #89645, an unwanted change of behaviour sneaked in. In particular, if we cannot determine required memory capacity, we previously returned `new AutoscalingDeciderResult(null)` where as we now return an autoscaling result with no memory capacity and whatever the result of the processor decider is. Previously, if we returned a result with null capacity, the cluster would remain as-is. Now, it is possible to cause unwanted scaling. This commit fixes this by checking if the memory decider result was undetermined and returns an empty result if so. Also, some logging warnings have been added to pop up scenarios that shouldn't happen like when the memory tracker is not called by the master node or it has no memory estimate for anomaly detection or analytics jobs.
When a processor autoscaling decider was added in #89645, an unwanted change of behaviour sneaked in. In particular, if we cannot determine required memory capacity, we previously returned
new AutoscalingDeciderResult(null)
where as we now return an autoscaling result with no memory capacity and whatever the result of the processor decider is.Previously, if we returned a result with null capacity, the cluster would remain as-is. Now, it is possible to cause unwanted scaling.
This commit fixes this by checking if the memory decider result was undetermined and returns an empty result if so.
Also, some logging warnings have been added to pop up scenarios that shouldn't happen like when the memory tracker is not called by the master node or it has no memory estimate for anomaly detection or analytics jobs.