Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control the memory consumption of Redis Stack #140

Open
iohenkies opened this issue Apr 4, 2024 · 1 comment
Open

Control the memory consumption of Redis Stack #140

iohenkies opened this issue Apr 4, 2024 · 1 comment
Assignees
Labels
kind/feature New feature or request

Comments

@iohenkies
Copy link

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 iohenkies added the kind/feature New feature or request label Apr 4, 2024
@Issif
Copy link
Member

Issif commented Apr 24, 2024

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

@Issif Issif self-assigned this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants