diff options
author | Harald Musum <musum@yahooinc.com> | 2023-04-14 11:25:32 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2023-04-14 11:25:32 +0200 |
commit | 6e2fc3a4bb3fd81f26357f875f7349e11ca9d3ab (patch) | |
tree | 26a910247e705ef7e652d9387f748f080637ad85 /clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java | |
parent | 16176985401e8fef7bd3d95e081c333cd652fe30 (diff) |
Add back original code and use it for default config
Set default value for max_number_of_groups_allowed_to_be_down to -1
and use that to switch between old and new code
Diffstat (limited to 'clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java')
-rw-r--r-- | clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java index b83d70b8656..2535589395d 100644 --- a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java +++ b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java @@ -32,7 +32,7 @@ public class ContentCluster { private final int maxNumberOfGroupsAllowedToBeDown; public ContentCluster(String clusterName, Collection<ConfiguredNode> configuredNodes, Distribution distribution) { - this(clusterName, configuredNodes, distribution, 1); + this(clusterName, configuredNodes, distribution, -1); } public ContentCluster(FleetControllerOptions options) { @@ -40,9 +40,9 @@ public class ContentCluster { } ContentCluster(String clusterName, - Collection<ConfiguredNode> configuredNodes, - Distribution distribution, - int maxNumberOfGroupsAllowedToBeDown) { + Collection<ConfiguredNode> configuredNodes, + Distribution distribution, + int maxNumberOfGroupsAllowedToBeDown) { if (configuredNodes == null) throw new IllegalArgumentException("Nodes must be set"); this.clusterName = clusterName; this.distribution = distribution; |