elasticsearch/docs/reference/ml
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
..
anomaly-detection [DOCS] Simplifies composite aggregation recommendation (#89878) 2022-09-07 17:54:05 +02:00
common/apis [ML] Performance improvements for categorization jobs (#89824) 2022-09-08 18:41:01 +01:00
df-analytics/apis [ML] Lift limit of max number of classes for classification to 100 (#89755) 2022-09-01 10:47:58 +03:00
images [DOCS] Updates anomaly detection alert rule type screenshot. (#89532) 2022-08-23 15:37:40 +02:00
trained-models/apis [ML] Add api to update trained model deployment number_of_allocations (#90728) 2022-10-12 10:04:23 +03:00
ml-shared.asciidoc [ML] add text_similarity nlp task documentation (#88994) 2022-08-02 12:17:14 -04:00