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 524e0287fc..29a1a54c5b 100644 --- a/plugin/src/main/java/org/opensearch/ml/plugin/MachineLearningPlugin.java +++ b/plugin/src/main/java/org/opensearch/ml/plugin/MachineLearningPlugin.java @@ -843,8 +843,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 );