From b597945d2d0e5f9f32f9fd35165bde9b60889c2b Mon Sep 17 00:00:00 2001 From: Chris Bartholomew Date: Sat, 25 May 2024 11:07:58 -0400 Subject: [PATCH] Removing limits to make more efficient use of CPU --- .../deployer/k8s/agents/AgentResourcesFactory.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/langstream-k8s-deployer/langstream-k8s-deployer-core/src/main/java/ai/langstream/deployer/k8s/agents/AgentResourcesFactory.java b/langstream-k8s-deployer/langstream-k8s-deployer-core/src/main/java/ai/langstream/deployer/k8s/agents/AgentResourcesFactory.java index 611d7daf4..1c0309e14 100644 --- a/langstream-k8s-deployer/langstream-k8s-deployer-core/src/main/java/ai/langstream/deployer/k8s/agents/AgentResourcesFactory.java +++ b/langstream-k8s-deployer/langstream-k8s-deployer-core/src/main/java/ai/langstream/deployer/k8s/agents/AgentResourcesFactory.java @@ -583,10 +583,7 @@ private static ResourceRequirements convertResources( memCpuUnits * agentResourceUnitConfiguration.getMemPerUnit()))); - return new ResourceRequirementsBuilder() - .withRequests(quantities) - .withLimits(quantities) - .build(); + return new ResourceRequirementsBuilder().withRequests(quantities).build(); } public static Map getAgentLabels(String agentId, String applicationId) {