summaryrefslogtreecommitdiffstats
path: root/flags
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2019-08-12 09:31:03 +0200
committerHarald Musum <musum@verizonmedia.com>2019-08-12 09:31:03 +0200
commitabf09d1a04f706a97357c849ddec7a4ece102b60 (patch)
tree59b1578c1d301ed68a9c98782e9dcba0ddbc5fa2 /flags
parent247c57f87631a684fa72f410a8c896900c01e303 (diff)
Add flag for setting node resource memory for admin nodes
Diffstat (limited to 'flags')
-rw-r--r--flags/src/main/java/com/yahoo/vespa/flags/Flags.java10
1 files changed, 8 insertions, 2 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 3fdd6d8dc48..3d82be9b65d 100644
--- a/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
+++ b/flags/src/main/java/com/yahoo/vespa/flags/Flags.java
@@ -19,7 +19,7 @@ import static com.yahoo.vespa.flags.FetchVector.Dimension.NODE_TYPE;
*
* <ol>
* <li>The unbound flag</li>
- * <li>A {@link FlagSource}. The flag source is typically available as an injectible component. Binding
+ * <li>A {@link FlagSource}. The flag source is typically available as an injectable component. Binding
* an unbound flag to a flag source produces a (bound) flag, e.g. {@link BooleanFlag} and {@link StringFlag}.</li>
* <li>If you would like your flag value to be dependent on e.g. the application ID, then 1. you should
* declare this in the unbound flag definition in this file (referring to
@@ -141,7 +141,7 @@ public class Flags {
public static final UnboundBooleanFlag PROVISION_APPLICATION_CERTIFICATE = defineFeatureFlag(
"provision-application-certificate", false,
- "Privision certificate from CA and include reference in deployment",
+ "Provision certificate from CA and include reference in deployment",
"Takes effect on deployment through controller",
APPLICATION_ID);
@@ -157,6 +157,12 @@ public class Flags {
"Takes effect at redeployment",
APPLICATION_ID);
+ public static final UnboundDoubleFlag MEMORY_FOR_ADMIN_CLUSTER_NODES = defineDoubleFlag(
+ "memory-for-admin-cluster-nodes", 3,
+ "Node resource memory in Gb for admin cluster nodes",
+ "Takes effect at redeployment",
+ APPLICATION_ID);
+
/** WARNING: public for testing: All flags should be defined in {@link Flags}. */
public static UnboundBooleanFlag defineFeatureFlag(String flagId, boolean defaultValue, String description,
String modificationEffect, FetchVector.Dimension... dimensions) {