From 3ee443c8e6a4bee3005df648501959b42082a237 Mon Sep 17 00:00:00 2001 From: ssb-jnk Date: Fri, 10 Jan 2025 13:34:34 +0100 Subject: [PATCH] revert to putting max memory manually --- .nais/alerts.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.nais/alerts.yaml b/.nais/alerts.yaml index 436ead1..ad9c97d 100644 --- a/.nais/alerts.yaml +++ b/.nais/alerts.yaml @@ -35,9 +35,9 @@ spec: namespace: dapla-stat severity: warning - # This alert checks if memory usage exceeds 90% of the memory limit assigned to the pseudo-service pod. + # This alert checks if memory usage exceeds 90% of the 12GB limit, which could cause instability. - alert: HighMemoryUsage - expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * on(app) group_left(container_memory_limit_bytes) container_memory_limit_bytes{app="pseudo-service"}) + expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * 12 * 1024 * 1024 * 1024) for: 5m annotations: title: "High memory usage detected"