summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/config/model/deploy
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-11-03 06:53:39 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2022-11-03 06:53:39 +0100
commitea15dbf2d207b7e35c2b6465a004c0e23f02924b (patch)
tree472234a801ced0f111d68791c0cceb25ce452537 /config-model/src/main/java/com/yahoo/config/model/deploy
parent84bcfff7395ec15d3c5635b8c22a451bc56eabd8 (diff)
Control the heas size percentage used as default for non-combined application clusters.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/config/model/deploy')
-rw-r--r--config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java b/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java
index eb628db6975..3298b627b19 100644
--- a/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java
+++ b/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java
@@ -12,6 +12,7 @@ import com.yahoo.config.provision.AthenzDomain;
import com.yahoo.config.provision.ClusterSpec;
import com.yahoo.config.provision.HostName;
import com.yahoo.config.provision.Zone;
+import com.yahoo.vespa.model.container.ApplicationContainerCluster;
import java.net.URI;
import java.security.cert.X509Certificate;
@@ -76,6 +77,7 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea
private int rpc_num_targets = 1;
private int rpc_events_before_wakeup = 1;
private int mbus_network_threads = 1;
+ private int heapSizePercentage = ApplicationContainerCluster.defaultHeapSizePercentageOfTotalNodeMemory;
private Architecture adminClusterNodeResourcesArchitecture = Architecture.getDefault();
private boolean useRestrictedDataPlaneBindings = false;
@@ -127,6 +129,7 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea
@Override public int mbusCppRpcNumTargets() { return mbus_cpp_num_targets; }
@Override public int mbusCppEventsBeforeWakeup() { return mbus_cpp_events_before_wakeup; }
@Override public int rpcNumTargets() { return rpc_num_targets; }
+ @Override public int heapSizePercentage() { return heapSizePercentage; }
@Override public int rpcEventsBeforeWakeup() { return rpc_events_before_wakeup; }
@Override public String queryDispatchPolicy() { return queryDispatchPolicy; }
@Override public boolean useTwoPhaseDocumentGc() { return useTwoPhaseDocumentGc; }
@@ -166,6 +169,11 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea
return this;
}
+ public TestProperties setHeapSizePercentage(int percentage) {
+ this.heapSizePercentage = percentage;
+ return this;
+ }
+
public TestProperties setAsyncMessageHandlingOnSchedule(boolean value) {
useAsyncMessageHandlingOnSchedule = value;
return this;