aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValerij Fredriksen <freva@users.noreply.github.com>2023-08-14 09:07:34 +0200
committerGitHub <noreply@github.com>2023-08-14 09:07:34 +0200
commit108e9e17f7c2ab14d6b957872c32da8d6f86fff7 (patch)
tree1a4d6620f64859d714aeca8165441337a3e6bc36
parente9df5f7b7aa6f9f1301d3d0f83e4749e5758e72d (diff)
parent2947096aaba5146f9ef9f4280cdff9bc5647748c (diff)
Merge pull request #28030 from vespa-engine/hmusum/add-flags
Add flag for controling how many file references to keep
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java16
1 files changed, 16 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 619dd39ca47..5a791522977 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
@@ -21,6 +21,7 @@ import static com.yahoo.vespa.flags.FetchVector.Dimension.HOSTNAME;
import static com.yahoo.vespa.flags.FetchVector.Dimension.NODE_TYPE;
import static com.yahoo.vespa.flags.FetchVector.Dimension.TENANT_ID;
import static com.yahoo.vespa.flags.FetchVector.Dimension.VESPA_VERSION;
+import static com.yahoo.vespa.flags.FetchVector.Dimension.ZONE_ID;
/**
* Definition for permanent feature flags
@@ -351,6 +352,7 @@ public class PermanentFlags {
"Takes effect immediately",
TENANT_ID);
+ // TODO: Remove when not in use anymore, replaced by KEEP_FILE_REFERENCES_DAYS
public static final UnboundIntFlag KEEP_FILE_REFERENCES_ON_TENANT_NODES = defineIntFlag(
"keep-file-references-on-tenant-nodes", 30,
"How many days to keep file references on tenant nodes (based on last modification time)",
@@ -358,6 +360,20 @@ public class PermanentFlags {
APPLICATION_ID
);
+ public static final UnboundIntFlag KEEP_FILE_REFERENCES_DAYS = defineIntFlag(
+ "keep-file-references-days", 30,
+ "How many days to keep file references on tenant nodes (based on last modification time)",
+ "Takes effect on restart of Docker container",
+ APPLICATION_ID
+ );
+
+ public static final UnboundIntFlag KEEP_FILE_REFERENCES_COUNT = defineIntFlag(
+ "keep-file-references-count", 20,
+ "How many file references to keep on tenant nodes (no matter what last modification time is)",
+ "Takes effect on restart of Docker container",
+ ZONE_ID, APPLICATION_ID
+ );
+
public static final UnboundIntFlag ENDPOINT_CONNECTION_TTL = defineIntFlag(
"endpoint-connection-ttl", 45,
"Time to live for connections to endpoints in seconds",