diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-04-17 13:59:59 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-04-17 13:59:59 +0200 |
commit | ab3a537f40025a8974ac947094e770d1f48133b7 (patch) | |
tree | b121ffa949ced8ef67cace5502c873a3b89c2861 /config-model/src/test | |
parent | 2951b57a5a94c9e1a72680aa0d94ecc4a822f419 (diff) |
1 flush thread below 16G, and 2 above.
Diffstat (limited to 'config-model/src/test')
-rw-r--r-- | config-model/src/test/java/com/yahoo/vespa/model/search/NodeResourcesTuningTest.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/search/NodeResourcesTuningTest.java b/config-model/src/test/java/com/yahoo/vespa/model/search/NodeResourcesTuningTest.java index 9fe38512fc0..d344be3da9a 100644 --- a/config-model/src/test/java/com/yahoo/vespa/model/search/NodeResourcesTuningTest.java +++ b/config-model/src/test/java/com/yahoo/vespa/model/search/NodeResourcesTuningTest.java @@ -182,14 +182,12 @@ public class NodeResourcesTuningTest { } @Test public void require_that_concurrent_flush_threads_is_1_with_low_memory() { - assertEquals(2, fromMemAndCpu(17, 9).flush().maxconcurrent()); - assertEquals(2, fromMemAndCpu(17, 64).flush().maxconcurrent()); // still capped by max - assertEquals(2, fromMemAndCpu(65, 8).flush().maxconcurrent()); // still capped by max - assertEquals(2, fromMemAndCpu(33, 8).flush().maxconcurrent()); - assertEquals(1, fromMemAndCpu(31, 8).flush().maxconcurrent()); - assertEquals(1, fromMemAndCpu(15, 8).flush().maxconcurrent()); - assertEquals(1, fromMemAndCpu(17, 8).flush().maxconcurrent()); + assertEquals(1, fromMemAndCpu(1, 8).flush().maxconcurrent()); assertEquals(1, fromMemAndCpu(15, 8).flush().maxconcurrent()); + assertEquals(1, fromMemAndCpu(16, 8).flush().maxconcurrent()); + assertEquals(2, fromMemAndCpu(17, 8).flush().maxconcurrent()); + assertEquals(2, fromMemAndCpu(65, 8).flush().maxconcurrent()); // still capped by max + assertEquals(2, fromMemAndCpu(65, 65).flush().maxconcurrent()); // still capped by max } private static void assertDocumentStoreMaxFileSize(long expFileSizeBytes, int wantedMemoryGb) { |