diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-05-05 10:55:29 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-05-05 10:55:29 +0200 |
commit | 4c5a7673163caaaeeb33f8a0cc3489a6e4ade98b (patch) | |
tree | 36f051b345c8b4c6f1ebe177148191efa9ec0635 /vespa-feed-client | |
parent | 005299acdb85b626b8c2fea2677c7f862d7b2fa6 (diff) |
Allow more I/O threads
Diffstat (limited to 'vespa-feed-client')
-rw-r--r-- | vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/ApacheCluster.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/ApacheCluster.java b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/ApacheCluster.java index a2c535564b5..7b17be1d2f0 100644 --- a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/ApacheCluster.java +++ b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/ApacheCluster.java @@ -187,7 +187,7 @@ class ApacheCluster implements Cluster { .setInitialWindowSize(Integer.MAX_VALUE) .build(), IOReactorConfig.custom() - .setIoThreadCount(2) + .setIoThreadCount(Math.max(Math.min(Runtime.getRuntime().availableProcessors(), 8), 2)) .setTcpNoDelay(true) .setSoTimeout(socketTimeout) .build(), |