summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2022-07-06 08:29:16 +0200
committerHarald Musum <musum@yahooinc.com>2022-07-06 08:29:16 +0200
commit4b4a127b644e732892f6b3fb8ca3db4a79ec1076 (patch)
tree323d70b9d1ed981bfb71b651a03fdceb9cd47278
parentb30efedee51a3b19230879d33787ede7fe438187 (diff)
Add flags for accepted compression types and type to use in file distribution
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/Flags.java14
1 files changed, 14 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 678e0c30d0f..f30cfbecc53 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
@@ -390,6 +390,20 @@ public class Flags {
"Takes effect immediately",
APPLICATION_ID);
+ public static final UnboundListFlag<String> FILE_DISTRIBUTION_ACCEPTED_COMPRESSION_TYPES = defineListFlag(
+ "file-distribution-accepted-compression-types", List.of("gzip"), String.class,
+ List.of("hmusum"), "2022-07-05", "2022-09-05",
+ "´List of accepted compression types used when asking for a file reference. Valid values: gzip, lz4",
+ "Takes effect on restart of service",
+ APPLICATION_ID);
+
+ public static final UnboundListFlag<String> FILE_DISTRIBUTION_COMPRESSION_TYPES_TO_SERVE = defineListFlag(
+ "file-distribution-compression-types-to-use", List.of("gzip"), String.class,
+ List.of("hmusum"), "2022-07-05", "2022-09-05",
+ "List of compression types to use (in preferred order), matched with accepted compression types when serving file references. Valid values: gzip, lz4",
+ "Takes effect on restart of service",
+ APPLICATION_ID);
+
public static final UnboundBooleanFlag USE_YUM_PROXY_V2 = defineFeatureFlag(
"use-yumproxy-v2", false,
List.of("tokle"), "2022-05-05", "2022-09-01",