Skip to content

Commit 7afaf2a

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

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
@@ -835,8 +835,8 @@ public List<ExecutorBuilder<?>> getExecutorBuilders(Settings settings) {
835835
FixedExecutorBuilder executeThreadPool = new FixedExecutorBuilder(
836836
settings,
837837
EXECUTE_THREAD_POOL,
838-
Math.max(1, OpenSearchExecutors.allocatedProcessors(settings) - 1),
839-
10,
838+
OpenSearchExecutors.allocatedProcessors(settings) * 4,
839+
10000,
840840
ML_THREAD_POOL_PREFIX + EXECUTE_THREAD_POOL,
841841
false
842842
);

0 commit comments

Comments
 (0)