diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-01-28 09:43:12 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-01-28 09:43:12 +0100 |
commit | 66af8ebf727715e92898370ab9576b44afb373f1 (patch) | |
tree | 0e8b37f37dded72972132eb692952a43d6ece98e /config-model | |
parent | f7d135511e5fb67016d607bc30efe85a45891726 (diff) |
Explain a bit the magic of dividing by 2
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/search/Tuning.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/search/Tuning.java b/config-model/src/main/java/com/yahoo/vespa/model/search/Tuning.java index 16b9680a0b2..a87a3d3e312 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/search/Tuning.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/search/Tuning.java @@ -341,6 +341,8 @@ public class Tuning extends AbstractConfigProducer implements PartitionsConfig.P @Override public void getConfig(ProtonConfig.Builder builder) { if (concurrency != null) { + // We divide by 2 as this number is used for 2 different thread pools. + // Not perfect, but the best way to split the resources evenly. builder.feeding.concurrency(concurrency/2); } } |