aboutsummaryrefslogtreecommitdiffstats
path: root/flags
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@verizonmedia.com>2021-01-22 15:54:23 +0100
committerHåkon Hallingstad <hakon@verizonmedia.com>2021-01-22 15:54:23 +0100
commit27e316ebbcea4bbee612d40166e7a0f7a007acc7 (patch)
treeb50f9c9647adc9c27b41895e0b9212a58b5f0832 /flags
parent8612ccf19dbfdcaec328a1743142ded1ab85274f (diff)
Support delegating content node suspension to cluster controller
This PR introduces a new flag group-suspension, which if true, enables: - Instead of allowing at most one storagenode to suspend at any given time, it will now ignore storagenode, searchnode, and distributor service clusters, and rely on the cluster controller to allow or deny the request to suspend. This will increase the load on the cluster controllers. Combined with earlier changes to the cluster controller, this new flag effectively guard the feature of allowing all nodes within a hierarchical group to suspend concurrently. I also took the opportunity to tune related policies: - Allow at most one config server and controller to be down at any given time. This is actually a no-op, since it was effectivelly equal to the older policy of 10% down. - Allows 20% of all host-admins to be down, not just tenant host-admins. This is effectively equal to the old policy of 10% except that it may allow 2 proxy host-admins to go down at the same time. Should be fine.
Diffstat (limited to 'flags')
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/Flags.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
index 6f7970e1357..df1a341eefa 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
@@ -278,6 +278,13 @@ public class Flags {
"Takes effect on next internal redeployment",
APPLICATION_ID);
+ public static final UnboundBooleanFlag GROUP_SUSPENSION = defineFeatureFlag(
+ "group-suspension", false,
+ List.of("hakon"), "2021-01-22", "2021-03-22",
+ "Allow all content nodes in a hierarchical group to suspend at the same time",
+ "Takes effect on the next suspension request to the Orchestrator.",
+ APPLICATION_ID);
+
public static final UnboundBooleanFlag RECONFIGURABLE_ZOOKEEPER_SERVER_FOR_CLUSTER_CONTROLLER = defineFeatureFlag(
"reconfigurable-zookeeper-server-for-cluster-controller", false,
List.of("musum", "mpolden"), "2020-12-16", "2021-02-16",