mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
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 |
||
---|---|---|
.. | ||
clear-trained-model-deployment-cache.asciidoc | ||
delete-trained-models-aliases.asciidoc | ||
delete-trained-models.asciidoc | ||
get-trained-models-stats.asciidoc | ||
get-trained-models.asciidoc | ||
index.asciidoc | ||
infer-trained-model-deployment.asciidoc | ||
infer-trained-model.asciidoc | ||
ml-trained-models-apis.asciidoc | ||
put-trained-model-definition-part.asciidoc | ||
put-trained-model-vocabulary.asciidoc | ||
put-trained-models-aliases.asciidoc | ||
put-trained-models.asciidoc | ||
start-trained-model-deployment.asciidoc | ||
stop-trained-model-deployment.asciidoc | ||
update-trained-model-deployment.asciidoc |