Skip to content

Conversation

@joegallo
Copy link
Contributor

This is only a small improvement, but it's hot enough code that it stuck out to me in a flamegraph. Because of the InferenceProcessor, we end up running this on every cluster state change.

@joegallo joegallo added :ml Machine learning Team:ML Meta label for the ML team v8.19.0 v9.1.0 labels Mar 21, 2025
@joegallo joegallo requested a review from edsavage March 21, 2025 18:08
@elasticsearchmachine
Copy link
Collaborator

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

@joegallo joegallo added the auto-backport Automatically create backport pull requests when merged label Mar 21, 2025
Copy link
Contributor

@edsavage edsavage left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks!

@joegallo joegallo merged commit 1078bd0 into elastic:main Mar 24, 2025
17 checks passed
@joegallo joegallo deleted the optimize-getMinMaxMlConfigVersion branch March 24, 2025 14:31
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

joegallo added a commit to joegallo/elasticsearch that referenced this pull request Mar 24, 2025
The logic is more complicated on 8.x than on main, so we need more of
the code to remain as it originally was.
elasticsearchmachine pushed a commit that referenced this pull request Mar 24, 2025
…25500)

* Optimize MlConfigVersion#getMinMaxMlConfigVersion (#125432)

* Revert part of #125432

The logic is more complicated on 8.x than on main, so we need more of
the code to remain as it originally was.
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :ml Machine learning >non-issue Team:ML Meta label for the ML team v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants