Skip to content

Commit 7eb3a17

Browse files
committed
Set default background threads to same as search threads
Signed-off-by: Simeon Widdis <[email protected]>
1 parent d3f4c1b commit 7eb3a17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/main/java/org/opensearch/sql/plugin/SQLPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ public List<ExecutorBuilder<?>> getExecutorBuilders(Settings settings) {
328328
new FixedExecutorBuilder(
329329
settings,
330330
SQL_BACKGROUND_THREAD_POOL_NAME,
331-
OpenSearchExecutors.allocatedProcessors(settings),
331+
settings.getAsInt(
332+
"thread_pool.search.size", OpenSearchExecutors.allocatedProcessors(settings)),
332333
1000,
333334
"thread_pool." + SQL_BACKGROUND_THREAD_POOL_NAME));
334335
}

0 commit comments

Comments
 (0)