diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-06-21 10:03:48 +0200 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-06-21 10:03:48 +0200 |
commit | cae18255a54eadc1d7949dd3564a8cc9a6056c75 (patch) | |
tree | d08b9b1accd8e6e17c53bfb4e54ba2f12bb67a96 /vespa-feed-client/src/test | |
parent | 7f0b51b604fd1e84be5684a8389c9e111fc5ede7 (diff) |
Some adjustments and fix int -> float division, try dynamic throttler
Diffstat (limited to 'vespa-feed-client/src/test')
-rw-r--r-- | vespa-feed-client/src/test/java/ai/vespa/feed/client/HttpRequestStrategyTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespa-feed-client/src/test/java/ai/vespa/feed/client/HttpRequestStrategyTest.java b/vespa-feed-client/src/test/java/ai/vespa/feed/client/HttpRequestStrategyTest.java index 4ef24713e9a..21ab6889e6e 100644 --- a/vespa-feed-client/src/test/java/ai/vespa/feed/client/HttpRequestStrategyTest.java +++ b/vespa-feed-client/src/test/java/ai/vespa/feed/client/HttpRequestStrategyTest.java @@ -40,8 +40,8 @@ class HttpRequestStrategyTest { Cluster cluster = new BenchmarkingCluster((__, vessel) -> executor.schedule(() -> vessel.complete(response), (int) (Math.random() * 2 * 10), TimeUnit.MILLISECONDS)); HttpRequestStrategy strategy = new HttpRequestStrategy(FeedClientBuilder.create(URI.create("https://dummy.com:123")) - .setConnectionsPerEndpoint(1 << 4) - .setMaxStreamPerConnection(1 << 20), + .setConnectionsPerEndpoint(1 << 10) + .setMaxStreamPerConnection(1 << 12), cluster); CountDownLatch latch = new CountDownLatch(1); new Thread(() -> { |