Skip to content

Conversation

dimitris-athanasiou
Copy link
Contributor

When we cannot compute autoscaling capacity we call
MlAutoscalingDeciderService.buildDecisionAndRequestRefresh.
There are 4 callers. 3 of them set their own specific reason before
the call. However, the method overwrites the reason with the generic
MEMORY_STALE msg. This commit addresses this issue which should
bubble up more detailed reasons for those edge cases.

When we cannot compute autoscaling capacity we call
`MlAutoscalingDeciderService.buildDecisionAndRequestRefresh`.
There are 4 callers. 3 of them set their own specific reason before
the call. However, the method overwrites the reason with the generic
`MEMORY_STALE` msg. This commit addresses this issue which should
bubble up more detailed reasons for those edge cases.
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

Copy link

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@droberts195
Copy link

If this problem exists in 7.17 and the code hasn't diverged too much to make a backport hard then it's probably worth backporting to 7.17.6 too.

@dimitris-athanasiou
Copy link
Contributor Author

@dimitris-athanasiou dimitris-athanasiou merged commit ca11e82 into elastic:main Aug 12, 2022
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request Aug 12, 2022
…stic#89316)

When we cannot compute autoscaling capacity we call
`MlAutoscalingDeciderService.buildDecisionAndRequestRefresh`.
There are 4 callers. 3 of them set their own specific reason before
the call. However, the method overwrites the reason with the generic
`MEMORY_STALE` msg. This commit addresses this issue which should
bubble up more detailed reasons for those edge cases.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.4

elasticsearchmachine pushed a commit that referenced this pull request Aug 16, 2022
) (#89320)

When we cannot compute autoscaling capacity we call
`MlAutoscalingDeciderService.buildDecisionAndRequestRefresh`.
There are 4 callers. 3 of them set their own specific reason before
the call. However, the method overwrites the reason with the generic
`MEMORY_STALE` msg. This commit addresses this issue which should
bubble up more detailed reasons for those edge cases.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@mark-vieira mark-vieira added v8.4.0 and removed v8.4.1 labels Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning >non-issue Team:ML Meta label for the ML team v8.4.0 v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants