diff options
author | Geir Storli <geirst@verizonmedia.com> | 2021-09-16 09:15:12 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2021-09-16 09:15:12 +0000 |
commit | e71201912bfde5477861f6b69bad783e2705fab4 (patch) | |
tree | 2748a5c9407887aad7a9180b0ecd30f8f295791f /config-model/src/main/java/com/yahoo | |
parent | fb5d4c9b0ac504698f4df52b9b0257170b944450 (diff) |
Flip to always use the new distributor stripe code path.
If the number of stripes is not configured, we tune it based on the sampled number of CPU cores.
Diffstat (limited to 'config-model/src/main/java/com/yahoo')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/content/Distributor.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/content/Distributor.java b/config-model/src/main/java/com/yahoo/vespa/model/content/Distributor.java index b5fe4ddee41..f640af71a59 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/content/Distributor.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/content/Distributor.java @@ -52,6 +52,8 @@ public class Distributor extends ContentNode implements StorDistributormanagerCo if (numDistributorStripesFlag == -1) { if (getHostResource() != null) { int cores = (int)getHostResource().realResources().vcpu(); + // This should match the calculation used when node flavor is not available: + // storage/src/vespa/storage/common/bucket_stripe_utils.cpp if (cores <= 16) { return 1; } else if (cores <= 64) { |