diff --git a/plugin/src/main/java/org/opensearch/ml/plugin/MachineLearningPlugin.java b/plugin/src/main/java/org/opensearch/ml/plugin/MachineLearningPlugin.java index 863c7cd054..8a8d1811d1 100644 --- a/plugin/src/main/java/org/opensearch/ml/plugin/MachineLearningPlugin.java +++ b/plugin/src/main/java/org/opensearch/ml/plugin/MachineLearningPlugin.java @@ -842,8 +842,8 @@ public List> getExecutorBuilders(Settings settings) { FixedExecutorBuilder executeThreadPool = new FixedExecutorBuilder( settings, EXECUTE_THREAD_POOL, - Math.max(1, OpenSearchExecutors.allocatedProcessors(settings) - 1), - 10, + OpenSearchExecutors.allocatedProcessors(settings) * 4, + 10000, ML_THREAD_POOL_PREFIX + EXECUTE_THREAD_POOL, false );