Skip to content

Conversation

@droberts195
Copy link

The way we detect an ML node from node attributes is now
to look for ml.machine_memory instead of ml.max_open_jobs.

Relates #79518

The way we detect an ML node from node attributes is now
to look for ml.machine_memory instead of ml.max_open_jobs.

Relates elastic#79518
@droberts195 droberts195 added >test Issues or PRs that are addressing/adding tests :ml Machine learning v7.16.0 labels Oct 21, 2021
@droberts195 droberts195 requested a review from benwtrent October 21, 2021 12:46
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Oct 21, 2021
@elasticmachine
Copy link
Collaborator

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

Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

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

:shipit:

droberts195 pushed a commit to droberts195/elasticsearch that referenced this pull request Oct 21, 2021
Where possible we should now detect ML nodes by looking
for the ML node role rather than an attribute.

Sadly this is not possible in the YAML tests, as the
syntax doesn't support asserting that a list contains
a particular item without asserting on the entire list
contents. So in the YAML case we need to look for the
ml.machine_memory node attribute, as this is reliably
set on ML nodes but not other types of nodes.

After elastic#79622 is merged this closes elastic#79518
@droberts195 droberts195 merged commit 053ecde into elastic:7.16 Oct 21, 2021
@droberts195 droberts195 deleted the change_ml_node_assertion branch October 21, 2021 13:38
droberts195 pushed a commit that referenced this pull request Oct 21, 2021
Where possible we should now detect ML nodes by looking
for the ML node role rather than an attribute.

Sadly this is not possible in the YAML tests, as the
syntax doesn't support asserting that a list contains
a particular item without asserting on the entire list
contents. So in the YAML case we need to look for the
ml.machine_memory node attribute, as this is reliably
set on ML nodes but not other types of nodes.

After #79622 is merged this closes #79518
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants