From 02b7e3d67729bd219d9b9e1ff957ee51df0d9b8c Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Fri, 11 Jun 2021 16:38:53 +0200 Subject: [PATCH] Limit collectds memory usage to guard nodes from running out of memory. If there is a connection issue with collectd not being able to write to event or metrics endpoints, this can lead to accumulating to large portions of memory. Limiting the memory usage via podman memory will prevent the container to grow limitless. In case of using more than 512 MB, podman will restart the container. Change-Id: I0b65b2c7878fe5ebd0d7f1a6f2ba8df23f2f0b28 (cherry picked from commit 2f702f7bb1452138811f42309b032f9747182e97) (cherry picked from commit e987a234061773f0817a090c7c9752e1fab0fd72) --- deployment/metrics/collectd-container-puppet.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deployment/metrics/collectd-container-puppet.yaml b/deployment/metrics/collectd-container-puppet.yaml index 37fd28ee18..a055f9c407 100644 --- a/deployment/metrics/collectd-container-puppet.yaml +++ b/deployment/metrics/collectd-container-puppet.yaml @@ -709,6 +709,7 @@ outputs: pid: host user: root restart: always + mem_limit: 512m cap_add: - IPC_LOCK healthcheck: