Skip to content
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 fetch source when finding index of last state docs #85334

Conversation

droberts195
Copy link
Contributor

There are two places where the ML code needs to find out which
index in the rolling sequence of state indices the previous
state document is in.

Previously the search to do this was needlessly retrieving
_source, which wastes memory.

The change tells the two searches not to fetch _source, only
the metadata.

There are two places where the ML code needs to find out which
index in the rolling sequence of state indices the previous
state document is in.

Previously the search to do this was needlessly retrieving
_source, which wastes memory.

The change tells the two searches not to fetch _source, only
the metadata.
@droberts195 droberts195 added >bug :ml Machine learning auto-backport-and-merge Automatically create backport pull requests and merge when ready v8.2.0 v7.17.2 v8.1.2 labels Mar 24, 2022
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Mar 24, 2022
@elasticmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @droberts195, I've created a changelog YAML for you.

Copy link
Contributor

@dimitris-athanasiou dimitris-athanasiou 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
Contributor Author

Jenkins test this

@droberts195
Copy link
Contributor Author

@elasticmachine update branch

@droberts195
Copy link
Contributor Author

Jenkins run elasticsearch-ci/part-1

@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
7.17
8.1

droberts195 added a commit to droberts195/elasticsearch that referenced this pull request Mar 24, 2022
…ic#85334)

There are two places where the ML code needs to find out which
index in the rolling sequence of state indices the previous
state document is in.

Previously the search to do this was needlessly retrieving
_source, which wastes memory.

The change tells the two searches not to fetch _source, only
the metadata.
elasticsearchmachine pushed a commit that referenced this pull request Mar 24, 2022
… (#85344)

There are two places where the ML code needs to find out which
index in the rolling sequence of state indices the previous
state document is in.

Previously the search to do this was needlessly retrieving
_source, which wastes memory.

The change tells the two searches not to fetch _source, only
the metadata.
elasticsearchmachine pushed a commit that referenced this pull request Mar 24, 2022
… (#85343)

There are two places where the ML code needs to find out which
index in the rolling sequence of state indices the previous
state document is in.

Previously the search to do this was needlessly retrieving
_source, which wastes memory.

The change tells the two searches not to fetch _source, only
the metadata.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport-and-merge Automatically create backport pull requests and merge when ready >bug :ml Machine learning Team:ML Meta label for the ML team v7.17.2 v8.1.2 v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants