diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-13 09:05:24 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-13 09:05:24 +0200 |
commit | 7b8b8cb1fd35ac961ec8a28daf5746be3202c6f2 (patch) | |
tree | fdae6d2e4ad69bf1602de414dda91275f79d5b03 /config-model/src/test/java/com | |
parent | cf494ca75f3dc3bd66ef90a8438a20a5dd447452 (diff) |
If there is less than 12G memory, use only single flush thread.
Diffstat (limited to 'config-model/src/test/java/com')
-rw-r--r-- | config-model/src/test/java/com/yahoo/vespa/model/search/NodeResourcesTuningTest.java | 6 |
1 files changed, 6 insertions, 0 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 fece6ca47e3..861482ab70c 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 @@ -168,6 +168,12 @@ public class NodeResourcesTuningTest { assertSharedDisk(true, true); } + @Test + public void require_that_concurrent_flush_threads_is_1_with_low_memory() { + assertEquals(2, configFromMemorySetting(13, 0).flush().maxconcurrent()); + assertEquals(1, configFromMemorySetting(11, 0).flush().maxconcurrent()); + } + private static void assertDocumentStoreMaxFileSize(long expFileSizeBytes, int wantedMemoryGb) { assertEquals(expFileSizeBytes, configFromMemorySetting(wantedMemoryGb + reservedMemoryGb, 0).summary().log().maxfilesize()); } |