diff --git a/plugin/src/main/java/org/opensearch/ml/task/MLTaskDispatcher.java b/plugin/src/main/java/org/opensearch/ml/task/MLTaskDispatcher.java index 539baa9de1..ca64a03b92 100644 --- a/plugin/src/main/java/org/opensearch/ml/task/MLTaskDispatcher.java +++ b/plugin/src/main/java/org/opensearch/ml/task/MLTaskDispatcher.java @@ -167,7 +167,12 @@ private void dispatchTaskWithLeastLoad(ActionListener listener) { private void dispatchTaskWithRoundRobin(ActionListener listener) { DiscoveryNode[] eligibleNodes = nodeHelper.getEligibleNodes(); if (eligibleNodes == null || eligibleNodes.length == 0) { - throw new MLResourceNotFoundException("no eligible node found, ml node is required to run this request"); + throw new MLResourceNotFoundException( + "No eligible node found to execute this request. It's best practice to" + + " provision ML nodes to serve your models. You can disable this setting to serve the model on your data" + + " node for development purposes by disabling the \"plugins.ml_commons.only_run_on_ml_node\" " + + "configuration using the _cluster/setting api" + ); } dispatchTaskWithRoundRobin(eligibleNodes, listener); } diff --git a/release-notes/opensearch-ml-common.release-notes-2.5.0.0.md b/release-notes/opensearch-ml-common.release-notes-2.5.0.0.md new file mode 100644 index 0000000000..054eb0cec1 --- /dev/null +++ b/release-notes/opensearch-ml-common.release-notes-2.5.0.0.md @@ -0,0 +1,35 @@ +## Version 2.5.0.0 Release Notes + +Compatible with OpenSearch 2.5.0 + +### Features +* Add native memory circuit breaker. ([#689](https://github.com/opensearch-project/ml-commons/pull/689)) + +### Enhancements +* add more parameters for text embedding model ([#640](https://github.com/opensearch-project/ml-commons/pull/640)) +* add more pooling method and refactor ([#672](https://github.com/opensearch-project/ml-commons/pull/672)) +* add ML task timeout setting and clean up expired tasks from cache ([#662](https://github.com/opensearch-project/ml-commons/pull/662)) +* change only run on ml node setting default value to true ([#686](https://github.com/opensearch-project/ml-commons/pull/686)) + +### Infrastructure +* unit tests coverage for load/unload/syncup ([#592](https://github.com/opensearch-project/ml-commons/pull/592)) +* Add .whitesource configuration file ([#626](https://github.com/opensearch-project/ml-commons/pull/626)) +* bump djl to 0.20 and add onnxruntime-gpu dependency ([#644](https://github.com/opensearch-project/ml-commons/pull/644)) +* Remove jackson-databind and jackson-annotations dependencies now coming from core ([#652](https://github.com/opensearch-project/ml-commons/pull/652)) +* Revert "Remove jackson-databind and jackson-annotations dependencies now coming from core" ([#687](https://github.com/opensearch-project/ml-commons/pull/687)) +* Adding backwards compatibility test for ml-commons plugin ([#681](https://github.com/opensearch-project/ml-commons/pull/681)) +* Change the inheritance of the BWC test file ([#692](https://github.com/opensearch-project/ml-commons/pull/692)) + +### Documentation + +* Updated MAINTAINERS.md format ([#668](https://github.com/opensearch-project/ml-commons/pull/668)) +* Updating maintainers list ([#663](https://github.com/opensearch-project/ml-commons/pull/663)) +* add doc about how to setup GPU ML node ([#677](https://github.com/opensearch-project/ml-commons/pull/677)) + +### Maintenance + +* Increment version to 2.5.0-SNAPSHOT ([#513](https://github.com/opensearch-project/ml-commons/pull/513)) + +### Refactoring + +* change task worker node to list; add target worker node to cache ([#656](https://github.com/opensearch-project/ml-commons/pull/656)) \ No newline at end of file