diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-02-06 12:27:23 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-02-06 12:27:23 +0100 |
commit | c4b29ec309bc118d41f90a9d8bbd94f53023e208 (patch) | |
tree | c0d3cfa696c06270daea04ab55b3908a0273f457 /config-model/src/main/java | |
parent | fcca2419ded121767da85b563efb7a634533bae1 (diff) |
Round redundancy up
Diffstat (limited to 'config-model/src/main/java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/content/Redundancy.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/content/Redundancy.java b/config-model/src/main/java/com/yahoo/vespa/model/content/Redundancy.java index 35b24f741b4..833fa89e611 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/content/Redundancy.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/content/Redundancy.java @@ -33,9 +33,9 @@ public class Redundancy implements StorDistributionConfig.Producer, ProtonConfig } /** Returns the final redundancy per group */ - public int finalRedundancy() { return effectiveFinalRedundancy()/groups; } + public int finalRedundancy() { return (int)Math.ceil((double)effectiveFinalRedundancy()/groups); } - public int readyCopies() { return effectiveReadyCopies()/groups; } + public int readyCopies() { return (int)Math.ceil((double)effectiveReadyCopies()/groups); } public int groups() { return groups; } public int totalNodes() { return totalNodes; } |