Max eviction rate of RMapCache #5691
nickchang13
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I'm currently dealing with an increasing cache memory usage problem after scaling up our QPS. I'm currently using RMapCache, and have tried to increase the eviction rate using minCleanUpDelay, maxCleanUpDelay, and cleanUpKeysAmount. Currently I have these values set at 1, 10, and 100000 respectively, but increasing these seems to have no effect. Previously when we saw a similar issue, we had gone from the default values to 1, 60, and 1000 and saw recovery.
Pulling size() from the the map cache, there are currently around 144m keys, which I believe the vast majority are expired.
Is there some sort of max rate that is supported by these eviction tasks? Looking at this commit, it looks like it might be 5k entries per task, is that correct? Is that per Redisson client instance? And is there any way to increase that further? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions