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] rename trained model allocations to assignments #85503

Merged

Conversation

benwtrent
Copy link
Member

@benwtrent benwtrent commented Mar 30, 2022

This renames the internal concept of a trained model allocation into an assignment.

Now models are assigned to a node and routes created for inference. Not "allocated".

This is an internal rename only. The user facing concepts of trained models and deployments are untouched.

@benwtrent benwtrent added the test-full-bwc Trigger full BWC version matrix tests label Mar 30, 2022
public class DeleteTrainedModelAllocationAction extends ActionType<AcknowledgedResponse> {
public static final DeleteTrainedModelAllocationAction INSTANCE = new DeleteTrainedModelAllocationAction();
public class DeleteTrainedModelAssignmentAction extends ActionType<AcknowledgedResponse> {
public static final DeleteTrainedModelAssignmentAction INSTANCE = new DeleteTrainedModelAssignmentAction();
public static final String NAME = "cluster:internal/xpack/ml/model_allocation/delete";
Copy link
Member Author

Choose a reason for hiding this comment

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

Renaming the actions broke WAY too much stuff. So, I didn't rename these internal actions.

@benwtrent benwtrent marked this pull request as ready for review April 12, 2022 11:50
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Apr 12, 2022
@elasticmachine
Copy link
Collaborator

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

@benwtrent
Copy link
Member Author

run elasticsearch-ci/full-bwc

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

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

LGTM

@benwtrent
Copy link
Member Author

run elasticsearch-ci/full-bwc

2 similar comments
@benwtrent
Copy link
Member Author

run elasticsearch-ci/full-bwc

@benwtrent
Copy link
Member Author

run elasticsearch-ci/full-bwc

@benwtrent
Copy link
Member Author

@elasticmachine update branch

@benwtrent benwtrent merged commit 25d1afb into elastic:master Apr 18, 2022
@benwtrent benwtrent deleted the feature/ml-allocation-assignment-rename branch April 18, 2022 15:35
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Apr 21, 2022
* master: (104 commits)
  fix: ordering terms aggregation on top metrics null values (elastic#85774)
  Fix up whitespace error introduced in elastic#85948
  More docs re. removing cluster.initial_master_nodes (elastic#85948)
  [Test] Remove API key methods from HLRC (elastic#85802)
  Remove references to bootstrap.system_call_filter (elastic#85964)
  Move docker cgroup override to SystemJvmOptions (elastic#85960)
  Add connection accounting tests (elastic#85966)
  Remove MacOS from platform support testing matrix
  Remove custom KnnVectorFieldExistsQuery (elastic#85945)
  Relax data path deprecations from critical to warn (elastic#85952)
  Remove hppc from some "common" classes (elastic#85957)
  Move docker env var settings handling out of bash (elastic#85913)
  Remove hppc from task manager (elastic#85889)
  [ML] rename trained model allocations to assignments (elastic#85503)
  Remove hppc from multi*shard request and responses (elastic#85888)
  Consolidating logging initialization in cli launcher (elastic#85920)
  Convert license tools to use unified cli entrypoint (elastic#85919)
  Add noop detection to node shutdown actions (elastic#85914)
  Adjust SQL expended test output
  TSDB: Add timestamp provider to AggregationExecutionContext (elastic#85850)
  ...

# Conflicts:
#	server/src/main/java/org/elasticsearch/search/aggregations/AggregationExecutionContext.java
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request Jun 17, 2022
In elastic#85503 we renamed trained model allocations to assignments.
However, it is important to wait for the full cluster to be
upgraded before we rewrite the cluster state so that there are
no undesired side-effects in a mixed cluster.
dimitris-athanasiou added a commit that referenced this pull request Jun 17, 2022
In #85503 we renamed trained model allocations to assignments.
However, it is important to wait for the full cluster to be
upgraded before we rewrite the cluster state so that there are
no undesired side-effects in a mixed cluster.
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request Jun 17, 2022
…c#87806)

In elastic#85503 we renamed trained model allocations to assignments.
However, it is important to wait for the full cluster to be
upgraded before we rewrite the cluster state so that there are
no undesired side-effects in a mixed cluster.
elasticsearchmachine pushed a commit that referenced this pull request Jun 17, 2022
#87814)

In #85503 we renamed trained model allocations to assignments.
However, it is important to wait for the full cluster to be
upgraded before we rewrite the cluster state so that there are
no undesired side-effects in a mixed cluster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml Machine learning >refactoring Team:ML Meta label for the ML team test-full-bwc Trigger full BWC version matrix tests v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants