Skip to content

Commit 9b2e5f1

Browse files
increase execute thread pool size (opensearch-project#2691) (opensearch-project#2696)
Signed-off-by: Yaliang Wu <ylwu@amazon.com> (cherry picked from commit b980199) Co-authored-by: Yaliang Wu <ylwu@amazon.com>
1 parent c72b4a2 commit 9b2e5f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/src/main/java/org/opensearch/ml/plugin/MachineLearningPlugin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,8 @@ public List<ExecutorBuilder<?>> getExecutorBuilders(Settings settings) {
843843
FixedExecutorBuilder executeThreadPool = new FixedExecutorBuilder(
844844
settings,
845845
EXECUTE_THREAD_POOL,
846-
Math.max(1, OpenSearchExecutors.allocatedProcessors(settings) - 1),
847-
10,
846+
OpenSearchExecutors.allocatedProcessors(settings) * 4,
847+
10000,
848848
ML_THREAD_POOL_PREFIX + EXECUTE_THREAD_POOL,
849849
false
850850
);

0 commit comments

Comments
 (0)