From b20c7db4ff10deb8af417f576a16247abeb98453 Mon Sep 17 00:00:00 2001 From: gjoranv Date: Tue, 15 Oct 2019 10:49:47 +0200 Subject: Only application clusters need to worry about memory percentage. --- .../vespa/model/container/ApplicationContainerCluster.java | 11 +++++++++++ .../com/yahoo/vespa/model/container/ContainerCluster.java | 10 ++-------- 2 files changed, 13 insertions(+), 8 deletions(-) (limited to 'config-model') diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/ApplicationContainerCluster.java b/config-model/src/main/java/com/yahoo/vespa/model/container/ApplicationContainerCluster.java index 55f6a0b3825..10536147419 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/container/ApplicationContainerCluster.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/container/ApplicationContainerCluster.java @@ -62,6 +62,8 @@ public final class ApplicationContainerCluster extends ContainerCluster parent, String subId, String name, DeployState deployState) { super(parent, subId, name, deployState); @@ -141,6 +143,15 @@ public final class ApplicationContainerCluster extends ContainerCluster getMemoryPercentage() { return Optional.ofNullable(memoryPercentage); } + @Override public void getConfig(BundlesConfig.Builder builder) { applicationBundles.stream().map(FileReference::value) diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java b/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java index a1aef1c0c91..fd14625953c 100755 --- a/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java @@ -154,7 +154,6 @@ public abstract class ContainerCluster private String hostClusterId = null; private String jvmGCOptions = null; private String environmentVars = null; - private Integer memoryPercentage = null; public ContainerCluster(AbstractConfigProducer parent, String subId, String name, DeployState deployState) { @@ -605,16 +604,11 @@ public abstract class ContainerCluster */ public Optional getHostClusterId() { return Optional.ofNullable(hostClusterId); } - public void setMemoryPercentage(Integer memoryPercentage) { this.memoryPercentage = memoryPercentage; } public void setJvmGCOptions(String opts) { this.jvmGCOptions = opts; } + public void setEnvironmentVars(String environmentVars) { this.environmentVars = environmentVars; } - public Optional getJvmGCOptions() { return Optional.ofNullable(jvmGCOptions); } - /** - * Returns the percentage of host physical memory this application has specified for nodes in this cluster, - * or empty if this is not specified by the application. - */ - public Optional getMemoryPercentage() { return Optional.ofNullable(memoryPercentage); } + public Optional getJvmGCOptions() { return Optional.ofNullable(jvmGCOptions); } public final void setRpcServerEnabled(boolean rpcServerEnabled) { this.rpcServerEnabled = rpcServerEnabled; } -- cgit v1.2.3