summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2019-01-08 12:31:00 +0100
committerGitHub <noreply@github.com>2019-01-08 12:31:00 +0100
commit3be5b89f1ca1bfd852827563547cac3b54e2421d (patch)
tree4e7da8f1d4852a94359df9fbaf91c85c58e9d362 /container-search
parent4d9b0cb8ff87d4d66af1fc4e6a3a15812170cd9c (diff)
parent0071a7a32af22aee024b812539cf668592a15fd5 (diff)
Merge pull request #8046 from vespa-engine/balder/limit-threads-for-federation
You do not need more than 8k threads for federation.
Diffstat (limited to 'container-search')
-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.