Naarcha-AWS b2c87f7fa9
Add new ML cluster settings for 2.5 (#2442)
* Add new ML cluster settings for 2.5

Signed-off-by: Naarcha-AWS <naarcha@amazon.com>

* Update _ml-commons-plugin/cluster-settings.md

* Update model-serving-framework.md

* Update _ml-commons-plugin/cluster-settings.md

Co-authored-by: Yaliang Wu <ylwu@amazon.com>

* Update _ml-commons-plugin/cluster-settings.md

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>

* Update _ml-commons-plugin/cluster-settings.md

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>

* Update _ml-commons-plugin/cluster-settings.md

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>

* Update _ml-commons-plugin/cluster-settings.md

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>

* Update _ml-commons-plugin/model-serving-framework.md

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>

* Update cluster-settings.md

* Update cluster-settings.md

Signed-off-by: Naarcha-AWS <naarcha@amazon.com>
Co-authored-by: Yaliang Wu <ylwu@amazon.com>
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
2023-01-23 13:04:44 -06:00

123 lines
3.0 KiB
Markdown

---
layout: default
title: ML Commons cluster settings
has_children: false
nav_order: 10
---
# ML Commons cluster settings
To enhance and customize your OpenSearch cluster for machine learning (ML), you can add and modify several configuration settings for the ML commons plugin in your 'opensearch.yml' file.
## Run tasks and models on ML nodes only
If `true`, ML Commons tasks and models run machine learning (ML) tasks on ML nodes only. If `false`, tasks and models run on ML nodes first. If no ML nodes exist, tasks and models run on data nodes. Don't set as `false` on a production cluster.
### Setting
```
plugins.ml_commons.only_run_on_ml_node: true
```
### Values
- Default value: `true`
- Value range: `true` or `false`
## Dispatch tasks to ML node
`round_robin` dispatches ML tasks to ML nodes using round robin routing. `least_load` gathers all ML nodes' runtime information, such as JVM heap memory usage and running tasks, then dispatches tasks to the ML node with the least load.
### Setting
```
plugins.ml_commons.task_dispatch_policy: round_robin
```
### Values
- Dafault value: `round_robin`
- Value range: `round_robin` or `least_load`
## Set sync up job intervals
When returning runtime information with the [profile API]({{site.url}}{{site.baseurl}}/ml-commons-plugin/api#profile), ML Commons will run a regular sync up job to sync up newly loaded or unloaded models on each node. When set to `0`, ML Commons immediately stops sync up jobs.
### Setting
```
plugins.ml_commons.sync_up_job_interval_in_seconds: 10
```
### Values
- Default value: `10`
- Value range: [0, 86,400]
## Predict monitoring requests
Controls how many predict requests are monitored on one node. If set to `0`, OpenSearch clears all monitoring predict requests in the node's cache, and does not monitor predict requests from that point forward.
### Setting
```
plugins.ml_commons.monitoring_request_count: 100
```
### Value range
- Default value: `100`
- Value range: [0, 100,000,000]
## Upload model tasks per node
Controls how many upload model tasks can run in parallel on one node. If set to `0`, you cannot upload models to any node.
### Setting
```
plugins.ml_commons.max_upload_model_tasks_per_node: 10
```
### Values
- Default value: `10`
- Value range: [0, 10]
## Load model tasks per node
Controls how many load model tasks can run in parallel on one node. If set to `0`, you cannot load models to any node.
### Setting
```
plugins.ml_commons.max_load_model_tasks_per_node: 10
```
### Values
- Default value: `10`
- Value range: [0, 10]
## Add trusted URL
The default value allows uploading a model file from any `http`, `https`, `ftp`, or local file. You can change this value to restrict trusted model URL.
### Setting
```
plugins.ml_commons.trusted_url_regex: ^(https?\|ftp\|file)://[-a-zA-Z0-9+&@#/%?=~_\|!:,.;]*[-a-zA-Z0-9+&@#/%=~_\|]
```
### Values
- Default value: `^(https?\|ftp\|file)://[-a-zA-Z0-9+&@#/%?=~_\|!:,.;]*[-a-zA-Z0-9+&@#/%=~_\|]`
- Value range: Java regular expression (regex) string