Redis configuration #1307
-
How Shlink is set-up
SummaryHello, Current Redis resources limitations :
Current Redis TTL configuration :
|
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 22 replies
-
At the moment Shlink is barely using Redis for anything. I plan to change this to apply performance improvements when possible, but I find very unlikely that those memory issues are caused by Shlink. It could be using 1% of those 512Mb, tops. Are you maybe using that Redis instance for something else? |
Beta Was this translation helpful? Give feedback.
-
Maybe this helps deciding how much memory to allocate https://docs.redis.com/latest/rs/administering/designing-production/hardware-requirements/, but according to that, Redis recommends way more than 512Mb. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I can confirm the database abstraction layer is also using redis when configured, and it creates cache entries that never expire, but I suspect they are not always relevant, because it grows and grows as long as you create new URLs. It is possible to set a default lifetime, though, so I'm going to do it. |
Beta Was this translation helpful? Give feedback.
-
I have marked this discussion as resolved. You can follow-up the resolution of the bug here #1308 |
Beta Was this translation helpful? Give feedback.
-
I have just released v2.10.2 (the docker image will be available once this build finishes). This release adds a 24h lifetime for cache entries. That should mitigate the issue for a regular Shlink usage. |
Beta Was this translation helpful? Give feedback.
-
Hi @acelaya, As you can see, the memory usage increase. |
Beta Was this translation helpful? Give feedback.
-
Hello, my colleague @rtrompier still have the issue with only 1 instance ... |
Beta Was this translation helpful? Give feedback.
-
Released v2.10.3, which fixes the memory leak. The docker image will be available as soon as https://github.com/shlinkio/shlink/runs/4913844311?check_suite_focus=true has finished. |
Beta Was this translation helpful? Give feedback.
Released v2.10.3, which fixes the memory leak.
The docker image will be available as soon as https://github.com/shlinkio/shlink/runs/4913844311?check_suite_focus=true has finished.