summaryrefslogtreecommitdiffstats
path: root/flags
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@yahooinc.com>2023-08-23 08:51:02 +0200
committerHåkon Hallingstad <hakon@yahooinc.com>2023-08-23 08:51:02 +0200
commit2ccf3fd6710e332283424ae4a89c9ed91f19621c (patch)
tree24dc6af751223c776cd293e61ffd5c5988963290 /flags
parent14c095ede55284f23dcd0b1f60344f8460c2dbfa (diff)
Drop dentries and inodes every X minutes
Diffstat (limited to 'flags')
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java12
1 files changed, 11 insertions, 1 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 b50e71154eb..53d799abd8d 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/PermanentFlags.java
@@ -386,7 +386,17 @@ public class PermanentFlags {
public static final UnboundBooleanFlag DROP_CACHES = defineFeatureFlag(
"drop-caches", true,
- "Drop caches on tenant hosts",
+ "Drop pagecache. " +
+ "This is combined with the drop-dentries-and-inodes flag for a single write to /proc/sys/vm/drop_caches.",
+ "Takes effect on next tick",
+ // The application ID is the exclusive application ID associated with the host,
+ // if any, or otherwise hosted-vespa:tenant-host:default.
+ APPLICATION_ID, TENANT_ID, CLUSTER_ID, CLUSTER_TYPE);
+
+ public static final UnboundIntFlag DROP_DENTRIES_AND_INODES = defineIntFlag(
+ "drop-dentries-and-inodes", -1,
+ "Drop dentries and inodes every N minutes. 0 means every tick. -1 means disabled. " +
+ "This is combined with the drop-caches flag for a single write to /proc/sys/vm/drop_caches.",
"Takes effect on next tick",
// The application ID is the exclusive application ID associated with the host,
// if any, or otherwise hosted-vespa:tenant-host:default.