Skip to content

Commit a734ad1

Browse files
increase execute thread pool size (#2691) (#2706)
Signed-off-by: Yaliang Wu <[email protected]> (cherry picked from commit b980199) Co-authored-by: Yaliang Wu <[email protected]>
1 parent c72b4a2 commit a734ad1

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

Lines changed: 2 additions & 2 deletions
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)