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 · 6 comments
Open

Control the memory consumption of Redis Stack #140

iohenkies opened this issue Apr 4, 2024 · 6 comments
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
@poiana
Copy link

poiana commented Jul 29, 2024

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

@iohenkies
Copy link
Author

/remove-lifecycle stale

@poiana
Copy link

poiana commented Oct 28, 2024

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

@jemag
Copy link

jemag commented Oct 28, 2024

/remove-lifecycle stale

@Issif
Copy link
Member

Issif commented Oct 28, 2024

It's now possible to specify a custom config for the redis deployed with falcosidekick-ui: https://github.com/falcosecurity/charts/blob/22b3f58f5e7816ffdce8cb67ec2aa132192429d7/charts/falcosidekick/values.yaml#L1243

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

4 participants