falcosidekick-ui icon indicating copy to clipboard operation
falcosidekick-ui copied to clipboard

Control the memory consumption of Redis Stack

Open iohenkies opened this issue 10 months ago • 3 comments

On Kubernetes, using Falco, Falcosidekick and Falcosidekick UI with the Redis instance that comes with it, we're looking for a way to control Redis memory usage. Because usage seems to grow and grow until the Redis pod gets OOM killed over and over again.

This is the used Redis config:

    redis:
      enabled: true
      image:
        pullPolicy: IfNotPresent
        registry: docker.io
        repository: redis/redis-stack
        tag: "7.2.0-v8"
      storageEnabled: true
      storageSize: "20Gi"
      storageClass: ""
      resources:
        requests:
          cpu: 500m
          memory: 1024Mi
        limits:
          cpu: 2000m
          memory: 4096Mi

And I believe the ttl setting below should rotate data:

  webui:
    enabled: true
    replicaCount: 2
    ttl: 7d

It is unclear what Redis does with this setting. It would be useful to be able to set settings like the below, which should probably prevent these issues:

maxmemory-policy allkeys-lfu
maxmemory 4096mb

I hope there is a way to keep it manageable without increasing the memory limit and decreasing the ttl.

iohenkies avatar Apr 04 '24 11:04 iohenkies

Thanks for this issue and the details. I'll think a way to manage that.

Issif avatar Apr 24 '24 10:04 Issif

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Jul 29 '24 16:07 poiana

/remove-lifecycle stale

iohenkies avatar Jul 30 '24 06:07 iohenkies