diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-03-04 10:09:19 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-03-04 10:09:19 +0000 |
commit | e09e4de18fb662f3f2a08d1a4ec51bd966387c43 (patch) | |
tree | 9ffe133f9a450d72dc22d2153d75dbcbc92f16ea /config-model/src/test/java | |
parent | 82d960e4f947fba587639c7f70e51d3f700c01b8 (diff) |
Let summary threads and search threads be limited by cores.
Diffstat (limited to 'config-model/src/test/java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/vespa/model/search/NodeFlavorTuningTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/search/NodeFlavorTuningTest.java b/config-model/src/test/java/com/yahoo/vespa/model/search/NodeFlavorTuningTest.java index a4b414ba0da..78c6d2eacc9 100644 --- a/config-model/src/test/java/com/yahoo/vespa/model/search/NodeFlavorTuningTest.java +++ b/config-model/src/test/java/com/yahoo/vespa/model/search/NodeFlavorTuningTest.java @@ -69,6 +69,13 @@ public class NodeFlavorTuningTest { } @Test + public void require_that_num_search_threads_and_summary_threads_follow_cores() { + ProtonConfig cfg = configFromNumCoresSetting(4.5); + assertEquals(5, cfg.numsearcherthreads()); + assertEquals(5, cfg.numsummarythreads()); + } + + @Test public void require_that_fast_disk_is_reflected_in_proton_config() { ProtonConfig cfg = configFromDiskSetting(true); assertEquals(200, cfg.hwinfo().disk().writespeed(), delta); |