summaryrefslogtreecommitdiffstats
path: root/flags
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2022-02-23 16:51:53 +0100
committerTor Brede Vekterli <vekterli@yahooinc.com>2022-02-23 16:51:53 +0100
commitc4cb61ae2b5b32be6d157a866d132f86e7087ea0 (patch)
tree0634f10406e5b9d1ef3f198e250ee50d96bcbf8f /flags
parentd015e7a9ef5f6e528fa8bb74949d46c4e9b2dcbc (diff)
Add more feature flags for tuning dynamic persistence throttling
Adds the following feature flags: * `persistence-throttling-window-size` for setting min/max window size to the same value, effectively creating a static throttle policy. * `persistence-throttling-ws-resize-rate` for controlling the rate at which the dynamic throttle policy resizes its window.
Diffstat (limited to 'flags')
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/Flags.java16
1 files changed, 16 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 7aeaf85a80b..a9c0711f148 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
@@ -328,6 +328,22 @@ public class Flags {
"Takes effect on redeployment",
ZONE_ID, APPLICATION_ID);
+ public static final UnboundIntFlag PERSISTENCE_THROTTLING_WINDOW_SIZE = defineIntFlag(
+ "persistence-throttling-window-size", -1,
+ List.of("vekterli"), "2022-02-23", "2022-06-01",
+ "If greater than zero, sets both min and max window size to the given number, effectively " +
+ "turning dynamic throttling into a static throttling policy. " +
+ "Only applies if DYNAMIC policy is used.",
+ "Takes effect on redeployment",
+ ZONE_ID, APPLICATION_ID);
+
+ public static final UnboundDoubleFlag PERSISTENCE_THROTTLING_WS_RESIZE_RATE = defineDoubleFlag(
+ "persistence-throttling-ws-resize-rate", 3.0,
+ List.of("vekterli"), "2022-02-23", "2022-06-01",
+ "Sets the dynamic throttle policy resize rate. Only applies if DYNAMIC policy is used.",
+ "Takes effect on redeployment",
+ ZONE_ID, APPLICATION_ID);
+
public static final UnboundBooleanFlag INHIBIT_DEFAULT_MERGES_WHEN_GLOBAL_MERGES_PENDING = defineFeatureFlag(
"inhibit-default-merges-when-global-merges-pending", false,
List.of("geirst", "vekterli"), "2022-02-11", "2022-06-01",