From 4e986b1dd352862176dafd81ed008f62b7f67604 Mon Sep 17 00:00:00 2001 From: Jay Deng Date: Tue, 6 Feb 2024 15:57:17 -0800 Subject: [PATCH] Increase index_searcher thread count to 2x processor Signed-off-by: Jay Deng --- .../main/java/org/opensearch/threadpool/ThreadPool.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/threadpool/ThreadPool.java b/server/src/main/java/org/opensearch/threadpool/ThreadPool.java index 84e67d0a5b178..0b9026b81eb4e 100644 --- a/server/src/main/java/org/opensearch/threadpool/ThreadPool.java +++ b/server/src/main/java/org/opensearch/threadpool/ThreadPool.java @@ -281,7 +281,13 @@ public ThreadPool( ); builders.put( Names.INDEX_SEARCHER, - new ResizableExecutorBuilder(settings, Names.INDEX_SEARCHER, allocatedProcessors, 1000, runnableTaskListener) + new ResizableExecutorBuilder( + settings, + Names.INDEX_SEARCHER, + twiceAllocatedProcessors(allocatedProcessors), + 1000, + runnableTaskListener + ) ); for (final ExecutorBuilder builder : customBuilders) {