aboutsummaryrefslogtreecommitdiffstats
path: root/flags
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-05-14 09:59:50 +0200
committerMartin Polden <mpolden@mpolden.no>2021-05-14 10:38:59 +0200
commit92a5c0a16305582e6960bcae37bab468b26728df (patch)
treeafee0a48591abcb5e45f73d1b17cced7f8a37fa4 /flags
parent5c41bfdb1365099e2cc521d1414ddfa55117af74 (diff)
Add feature flag for max rebuilds
Diffstat (limited to 'flags')
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java b/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
index d6d8b1a26e1..79d2d7731ee 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
@@ -157,6 +157,12 @@ public class PermanentFlags {
"Takes effect on redeployment",
APPLICATION_ID);
+ public static final UnboundIntFlag MAX_REBUILDS = defineIntFlag(
+ "max-host-rebuilds", 10,
+ "The maximum number of hosts allowed to rebuild at a time",
+ "Takes effect immediately, but any current excess rebuilds will not be cancelled"
+ );
+
private PermanentFlags() {}
private static UnboundBooleanFlag defineFeatureFlag(