diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-09-13 13:16:22 +0200 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-09-13 13:16:22 +0200 |
commit | 78636af945946e6c4daca98a77bcdcedf255659e (patch) | |
tree | f91fcb8fc3ec6f9b034e980f2cdfd24329b1ab73 /config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java | |
parent | 09f0aa01846c4c81c4fe1f86293a964a19f0f343 (diff) |
Add group-normalized redundancy to Dispatch config
Will allow the degraded coverage calculation to use in-group
redundancy in addition to the existing searchable-copies config
as part of its heuristics.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java b/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java index a74cb040631..daade2d74d9 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/content/ContentSearchCluster.java @@ -322,8 +322,12 @@ public class ContentSearchCluster extends AbstractConfigProducer<SearchCluster> } public void handleRedundancy(Redundancy redundancy) { - if (hasIndexedCluster()) + if (hasIndexedCluster()) { + // Important: these must all be the normalized "within a single leaf group" values, + // _not_ the cluster-wide, cross-group values. indexedCluster.setSearchableCopies(redundancy.readyCopies()); + indexedCluster.setRedundancy(redundancy.finalRedundancy()); + } this.redundancy = redundancy; } |