From 7dca6206a757e081f0cc0047b6374c27adad437a Mon Sep 17 00:00:00 2001 From: Lukas Zapletal Date: Thu, 18 Jul 2024 09:27:37 +0200 Subject: [PATCH] fix(HMS-4439): resource limits (ADR-046) --- deploy/clowdapp.yaml | 46 ++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/deploy/clowdapp.yaml b/deploy/clowdapp.yaml index 7f6fd4a4..2c693dab 100644 --- a/deploy/clowdapp.yaml +++ b/deploy/clowdapp.yaml @@ -105,11 +105,11 @@ objects: value: ${WORKER_QUEUE} resources: limits: - cpu: ${{CPU_LIMIT}} - memory: ${MEMORY_LIMIT} + cpu: ${{CPU_LIMIT_ALL}} + memory: ${MEMORY_LIMIT_ALL} requests: - cpu: ${CPU_REQUESTS} - memory: ${MEMORY_REQUESTS} + cpu: ${CPU_REQUEST_ALL} + memory: ${MEMORY_REQUEST_ALL} - name: statuser replicas: ${{STATUSER_REPLICAS}} metadata: @@ -192,11 +192,11 @@ objects: value: ${APP_CACHE_TYPE} resources: limits: - cpu: ${{CPU_LIMIT}} - memory: ${MEMORY_LIMIT} + cpu: ${{CPU_LIMIT_ALL}} + memory: ${MEMORY_LIMIT_ALL} requests: - cpu: ${CPU_REQUESTS} - memory: ${MEMORY_REQUESTS} + cpu: ${CPU_REQUEST_ALL} + memory: ${MEMORY_REQUEST_ALL} - name: stats replicas: ${{STATS_REPLICAS}} metadata: @@ -241,11 +241,11 @@ objects: value: ${APP_CACHE_TYPE} resources: limits: - cpu: ${{CPU_LIMIT}} - memory: ${MEMORY_LIMIT} + cpu: ${{CPU_LIMIT_ALL}} + memory: ${MEMORY_LIMIT_ALL} requests: - cpu: ${CPU_REQUESTS} - memory: ${MEMORY_REQUESTS} + cpu: ${CPU_REQUEST_ALL} + memory: ${MEMORY_REQUEST_ALL} - name: api replicas: ${{API_REPLICAS}} webServices: @@ -367,11 +367,11 @@ objects: value: ${WORKER_QUEUE} resources: limits: - cpu: ${{CPU_LIMIT}} - memory: ${MEMORY_LIMIT} + cpu: ${{CPU_LIMIT_ALL}} + memory: ${MEMORY_LIMIT_ALL} requests: - cpu: ${CPU_REQUESTS} - memory: ${MEMORY_REQUESTS} + cpu: ${CPU_REQUEST_ALL} + memory: ${MEMORY_REQUEST_ALL} database: name: provisioning version: 15 @@ -509,17 +509,17 @@ parameters: name: ENV_NAME required: true - description: CPU request for each pod (placement) - name: CPU_REQUESTS - value: 100m + name: CPU_REQUEST_ALL + value: 250m - description: Memory request for each pod (placement) - name: MEMORY_REQUESTS - value: 100Mi + name: MEMORY_REQUEST_ALL + value: 256Mi - description: CPU limit for each pod (throttling) - name: CPU_LIMIT + name: CPU_LIMIT_ALL value: 500m - description: Memory limit for each pod (pod restart) - name: MEMORY_LIMIT - value: 600Mi + name: MEMORY_LIMIT_ALL + value: 512Mi - description: Amount of replicas for pod serving the API name: API_REPLICAS value: "3"