aboutsummaryrefslogtreecommitdiffstats
path: root/flags
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@verizonmedia.com>2021-02-19 14:36:29 +0100
committerTor Brede Vekterli <vekterli@verizonmedia.com>2021-02-19 14:36:29 +0100
commit7d3f16e8bc403c1974262c985791ee6db6b36bab (patch)
treea4264400f6cef1ff08844cda37cacb8af8de6a58 /flags
parent9d9c5fd49909b7906a22a4f092037652c126751b (diff)
Add feature flag for group replica activation inhibition
Default is 0, i.e. inhibition feature is disabled.
Diffstat (limited to 'flags')
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/Flags.java8
1 files changed, 8 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 5ea6301b104..b00711311c5 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
@@ -258,6 +258,14 @@ public class Flags {
"Takes effect on next internal redeployment",
APPLICATION_ID);
+ public static final UnboundIntFlag MAX_ACTIVATION_INHIBITED_OUT_OF_SYNC_GROUPS = defineIntFlag(
+ "max-activation-inhibited-out-of-sync-groups", 0,
+ List.of("vekterli"), "2021-02-19", "2021-05-01",
+ "Allows replicas in up to N content groups to not be activated " +
+ "for query visibility if they are out of sync with a majority of other replicas",
+ "Takes effect at redeployment",
+ ZONE_ID, APPLICATION_ID);
+
/** WARNING: public for testing: All flags should be defined in {@link Flags}. */
public static UnboundBooleanFlag defineFeatureFlag(String flagId, boolean defaultValue, List<String> owners,
String createdAt, String expiresAt, String description,