Skip to content

Commit

Permalink
Increase index_searcher thread count to 2x processor
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Deng <jayd0104@gmail.com>
  • Loading branch information
jed326 authored and Jay Deng committed Feb 6, 2024
1 parent 52b27f4 commit 57fe433
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 57fe433

Please sign in to comment.