diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-13 10:44:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-13 10:44:46 +0200 |
commit | 09f0aa01846c4c81c4fe1f86293a964a19f0f343 (patch) | |
tree | 093791dc9b3f89ca72f9cfd654d2a8a216424cd3 /config-model/src/test | |
parent | 41be79518e5ce5f84c961c637162d527481e9ee0 (diff) | |
parent | 7b8b8cb1fd35ac961ec8a28daf5746be3202c6f2 (diff) |
Merge pull request #24026 from vespa-engine/balder/use-single-flush-thread-below-12G-memory
If there is less than 12G memory, use only single flush thread.
Diffstat (limited to 'config-model/src/test')
-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()); } |