diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-03-22 11:10:34 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-03-22 11:10:34 +0100 |
commit | a8bcbe17f3e88d150350a2d6e70843046741cbe9 (patch) | |
tree | 53b70d69178ec404a68d34ba674083ebc48b3764 /config-model-api | |
parent | d8f9994a519bf15974b83bfb71cd2a56f878bb6c (diff) |
Set jvmargs based on cluster type
Diffstat (limited to 'config-model-api')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java b/config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java index 0a59392789a..66310b5f0f0 100644 --- a/config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java +++ b/config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java @@ -116,8 +116,12 @@ public interface ModelContext { default List<TenantSecretStore> tenantSecretStores() { return List.of(); } - /// Default setting for the gc-options attribute if not specified explicit by application - String jvmGCOptions(); + // TODO jonmv: remove after 7.380 is gone. + // Default setting for the gc-options attribute if not specified explicit by application + default String jvmGCOptions() { return jvmGCOptions(Optional.empty()); } + + // Default setting for the gc-options attribute if not specified explicit by application + String jvmGCOptions(Optional<ClusterSpec.Type> clusterType); // Note: Used in unit tests (set to false in TestProperties) to avoid needing to deal with implicitly created node for logserver default boolean useDedicatedNodeForLogserver() { return true; } |