diff options
author | Harald Musum <musum@verizonmedia.com> | 2019-08-12 09:59:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-12 09:59:12 +0200 |
commit | bb5d8abfe64f9f2c4336e5e24a66c1e292ba2c7b (patch) | |
tree | 59b1578c1d301ed68a9c98782e9dcba0ddbc5fa2 | |
parent | 247c57f87631a684fa72f410a8c896900c01e303 (diff) | |
parent | abf09d1a04f706a97357c849ddec7a4ece102b60 (diff) |
Merge pull request #10230 from vespa-engine/hmusum/add-flag-for-setting-memory-used-for-admin-cluster-nodes
Add flag for setting node resource memory for admin nodes
-rw-r--r-- | flags/src/main/java/com/yahoo/vespa/flags/Flags.java | 10 |
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) { |