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

Just a question regarding Redis memory size #16

Open
reduktr opened this issue Dec 15, 2024 · 1 comment
Open

Just a question regarding Redis memory size #16

reduktr opened this issue Dec 15, 2024 · 1 comment

Comments

@reduktr
Copy link

reduktr commented Dec 15, 2024

Curious as to why you decided on 4MB max for Redis.

I've noticed this usually maxes out cached entries in Redis around 6-7k. If I were to raise the limit to let's say 20-50MB, do you suggest any other tweaks in your Redis config that would work better with this memory limit?

Thanks again for the wonderful repo!

@ar51an
Copy link
Owner

ar51an commented Dec 15, 2024

That was done a long time ago for a small network. I am currently using maxmemory 8mb. Of course you can use maxmemory according to your requirement. I also mentioned in the readme Feel free to change them as preferred.

Few suggestions:

  • Use maxmemory as a power of 2 (4, 8, 16 ...). It will be slightly more efficient.
  • Do not use too big maxmemory, otherwise it will never fill up and existing entries will not recycle. maxmemory-policy will never kick in to evict least recently used keys. You will have too old stale data, which might throw error if it has been updated by the domain owner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants