Don't limit cpu in dev
@@ -3,6 +3,7 @@ package com.yahoo.vespa.hosted.node.admin.nodeagent;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.yahoo.config.provision.DockerImage;
+import com.yahoo.config.provision.Environment;
import com.yahoo.log.LogLevel;
import com.yahoo.vespa.flags.DoubleFlag;
import com.yahoo.vespa.flags.FetchVector;
@@ -365,6 +366,9 @@ public class NodeAgentImpl implements NodeAgent {
.orElse(containerCpuCap)
.value() * node.getMinCpuCores();
+ if ( contextSupplier.currentContext().zoneId().environment() == Environment.dev)
+ return ContainerResources.from(0, 0, node.getMinMainMemoryAvailableGb()); // Don't limit cpu in dev
+ else
return ContainerResources.from(cpuCap, node.getMinCpuCores(), node.getMinMainMemoryAvailableGb());
}
