elasticsearch/docs/reference/ml/trained-models/apis
Dimitris Athanasiou 16bfc550ea
[ML] Add api to update trained model deployment number_of_allocations (#90728)
This commit adds a new API that users can use calling:

```
POST _ml/trained_models/{model_id}/deployment/_update
{
  "number_of_allocations": 4
}
```

This allows a user to update the number of allocations for a deployment
that is `started`.

If the allocations are increased we rebalance and let the assignment
planner find how to allocate the additional allocations.

If the allocations are decreased we cannot use the assignment planner.
Instead, we implement the reduction in a new class `AllocationReducer`
that tries to reduce the allocations so that:

  1. availability zone balance is maintained
  2. assignments that can be completely stopped are preferred to release memory
2022-10-12 10:04:23 +03:00
..
clear-trained-model-deployment-cache.asciidoc [ML] Release native inference functionality as beta (#90418) 2022-09-28 11:09:02 +01:00
delete-trained-models-aliases.asciidoc [DOCS] Move trained model APIs out of dataframe analytics (#81315) 2021-12-03 09:21:09 -08:00
delete-trained-models.asciidoc [DOCS] Move trained model APIs out of dataframe analytics (#81315) 2021-12-03 09:21:09 -08:00
get-trained-models-stats.asciidoc [ML] Add stat for non cache hit inference time (#90464) 2022-09-29 12:18:27 +01:00
get-trained-models.asciidoc [ML] add text_similarity nlp task documentation (#88994) 2022-08-02 12:17:14 -04:00
index.asciidoc [ML] Add api to update trained model deployment number_of_allocations (#90728) 2022-10-12 10:04:23 +03:00
infer-trained-model-deployment.asciidoc [ML] add new trained_models/{model_id}/_infer endpoint for all supervised models and deprecate deployment infer api (#86361) 2022-05-05 14:58:59 -04:00
infer-trained-model.asciidoc [ML] Release native inference functionality as beta (#90418) 2022-09-28 11:09:02 +01:00
ml-trained-models-apis.asciidoc [ML] Add api to update trained model deployment number_of_allocations (#90728) 2022-10-12 10:04:23 +03:00
put-trained-model-definition-part.asciidoc [ML] Release native inference functionality as beta (#90418) 2022-09-28 11:09:02 +01:00
put-trained-model-vocabulary.asciidoc [ML] Release native inference functionality as beta (#90418) 2022-09-28 11:09:02 +01:00
put-trained-models-aliases.asciidoc [DOCS] Move trained model APIs out of dataframe analytics (#81315) 2021-12-03 09:21:09 -08:00
put-trained-models.asciidoc [ML] add text_similarity nlp task documentation (#88994) 2022-08-02 12:17:14 -04:00
start-trained-model-deployment.asciidoc [ML] Release native inference functionality as beta (#90418) 2022-09-28 11:09:02 +01:00
stop-trained-model-deployment.asciidoc [ML] Release native inference functionality as beta (#90418) 2022-09-28 11:09:02 +01:00
update-trained-model-deployment.asciidoc [ML] Add api to update trained model deployment number_of_allocations (#90728) 2022-10-12 10:04:23 +03:00