Closed alexpapworth closed 11 months ago
I suppose https://github.com/igorkasyanchuk/rails_performance/issues/46 is related, although I appear to be getting a different outcome? AKA no error.
If you have a lot of requests this is expected to. Redis is good option for for storage because it fast and has simple solution too expired record's.
I suggest you just to decrease duration of the collected data
I personally use this gem with maybe 40 rpm and duration 4 hours. And allow good. There already no other options except adding more memory or reducing duration param
Sorry I should have been more clear. I expected the website to break, but it didn't.
Is this because Redis is expiring old records automatically?
yes, all records that I push to Redis have expiration time equal to "duration"
Hello, I'm testing out this gem to use in production. I'm curious to understand how storage of the data works.
After deploying I watched the Redis memory increase from 0% to 100% during 30 minutes. Once it hit 100% I expected to see an OOM message, however it appears to still be collecting requests.
Does the gem discard expensive information about older requests, or is my traffic somehow fitting just inside the available Redis memory?