diff options
author | Harald Musum <musum@yahooinc.com> | 2023-08-13 16:07:13 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2023-08-13 16:07:13 +0200 |
commit | 2947096aaba5146f9ef9f4280cdff9bc5647748c (patch) | |
tree | a01b3673caedebbbee151d7b5afb243a5e26b964 /flags | |
parent | acb4a3cf9ee0a94d7562abbf3a0750cd15ff1847 (diff) |
Add flag for controling how many file references to keep
Diffstat (limited to 'flags')
-rw-r--r-- | flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java | 16 |
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", |