Skip to content

Commit

Permalink
Increase index_searcher thread count to 2x processor (opensearch-proj…
Browse files Browse the repository at this point in the history
…ect#12196)

Signed-off-by: Jay Deng <[email protected]>
  • Loading branch information
jed326 authored and Peter Alfonsi committed Mar 1, 2024
1 parent 0ad74fe commit 7c35ae8
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 7c35ae8

Please sign in to comment.