We are using a number of redis instances as a sharded LRU cache, and are noticing some strange behavior.
We have not yet been able to extract a simple, reproducible scenario, but in our environment we see this behavior repeatedly.
Our redis instances are not disk-backed, so the number of keys starts at 0. In each instance, we have a number of sorted sets, which we update with ZINCRBY and trim with ZREMRANGEBYRANK. The number of keys grows, and eventually stabilizes. Sometime later, the number of keys starts dropping, until it hits 0, and stays there while INFO MEMORY reports that the affected instances are using maxmemory. Redis displays no error messages, and neither does the client. Both seem to believe that everything is fine.
Restarting the client does not seem to fix the problem. The only fix we have currently is to restart redis, and start over. We are baffled, and looking for suggestions on where to look.
Thanks, P.