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 2f702f7bb1
)
This commit is contained in:
parent
3eb3f8b9ff
commit
e987a23406
@ -722,6 +722,7 @@ outputs:
|
|||||||
pid: host
|
pid: host
|
||||||
user: root
|
user: root
|
||||||
restart: always
|
restart: always
|
||||||
|
mem_limit: 512m
|
||||||
cap_add:
|
cap_add:
|
||||||
- IPC_LOCK
|
- IPC_LOCK
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
Loading…
Reference in New Issue
Block a user