aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-01-08 10:11:11 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2019-01-08 10:11:11 +0100
commit0071a7a32af22aee024b812539cf668592a15fd5 (patch)
tree3763f00f6d67d2bbbf044478ccdc1462dfc79949 /container-search/src/main
parente042fb32fdb6038749edafd0e23f13728a6fa92c (diff)
You do not need more than 8k threads for federation.
Diffstat (limited to 'container-search/src/main')
-rw-r--r--container-search/src/main/java/com/yahoo/search/searchchain/AsyncExecution.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/searchchain/AsyncExecution.java b/container-search/src/main/java/com/yahoo/search/searchchain/AsyncExecution.java
index 4dbec304bde..099f431d025 100644
--- a/container-search/src/main/java/com/yahoo/search/searchchain/AsyncExecution.java
+++ b/container-search/src/main/java/com/yahoo/search/searchchain/AsyncExecution.java
@@ -49,7 +49,7 @@ public class AsyncExecution {
private static final Executor executorMain = createExecutor();
private static Executor createExecutor() {
- ThreadPoolExecutor executor = new ThreadPoolExecutor(100, Integer.MAX_VALUE, 1L, TimeUnit.SECONDS,
+ ThreadPoolExecutor executor = new ThreadPoolExecutor(100, 8192, 1L, TimeUnit.SECONDS,
new SynchronousQueue<>(false), threadFactory);
// Prestart needed, if not all threads will be created by the fist N tasks and hence they might also
// get the dreaded thread locals initialized even if they will never run.