How to fix Redis memory error "

I use redis storage in dotcloud, but despite the expiration of the keys, its used_memory never comes back. Using flushdb or flushall from redis-cli does not cause used_memory to drop ~ 20Mb from it. I had the same issue with RedisToGo.

Does anyone know how I can fill it? and how can i avoid this? Perhaps there are certain characters that you should not enter in redis values ​​or keys? I use it with EM and re-view the heroku rails app.

+4
source share
1 answer

Redis also has mem_fragmentation_ratio (ex: 2.5), so using both values ​​is likely to lead to more accurate measurements. At very low levels used_memory (for example, near zero), fragmentation can be quite high, and to reduce it you will need to stop / start the redis instance manually.

RedisToGo can report the use of real memory in such a way as the combination used_memory x mem_fragmentation_ratio .

0
source

Source: https://habr.com/ru/post/1435611/


All Articles