aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/xml/SearchHandler.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2023-10-04 16:09:20 +0200
committerBjørn Christian Seime <bjorncs@yahooinc.com>2023-10-04 16:09:20 +0200
commitd388681d24f3e219a5f58b494bc169a2b9e92045 (patch)
treeff2a8497f1d6f60854b1a21f2c34a78381e9f35c /config-model/src/main/java/com/yahoo/vespa/model/container/xml/SearchHandler.java
parent73a7347427cd4816582beca2a9b74256d0fc8d80 (diff)
Add feature flag to override search handler threadpool size
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/container/xml/SearchHandler.java')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/container/xml/SearchHandler.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/xml/SearchHandler.java b/config-model/src/main/java/com/yahoo/vespa/model/container/xml/SearchHandler.java
index 3cd296c1469..7bdd2ce51a4 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/container/xml/SearchHandler.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/container/xml/SearchHandler.java
@@ -49,16 +49,19 @@ class SearchHandler extends ProcessingHandler<SearchChains> {
private static class Threadpool extends ContainerThreadpool {
+ private final int threads;
+
Threadpool(DeployState ds, Element options) {
super(ds, "search-handler", options);
+ threads = ds.featureFlags().searchHandlerThreadpool();
}
@Override
public void setDefaultConfigValues(ContainerThreadpoolConfig.Builder builder) {
builder.maxThreadExecutionTimeSeconds(190)
.keepAliveTime(5.0)
- .maxThreads(-2)
- .minThreads(-2)
+ .maxThreads(-threads)
+ .minThreads(-threads)
.queueSize(-40);
}