I\'m getting \"OOM command not allowed\" when trying to set a key,
maxmemory
is set to 500M with maxmemory-policy
\"volatile-lru\", I\'m setting T
For such a problem, consider increasing your maxmemory in redis.conf file. It helped me.
like maxmemory was 21000000 for me then I changed it to 31000000. Hope it helps.
TO debug this issue, need to check that what action you performed on the redis-cli manually or somewhere from the code.
My problem was that old data wasn't being released and it caused the redis db to get jammed up quickly. in Python, I cleared the cache server by running
red = redis.StrictRedis(...)
red.flushdb()
And then, limted the ttl to 24h by saving the file with "ex":
red.set(<FILENAME>, png, ex=(60*60*24))
Any chance you changed the number of databases? If you use a very large number then the initial memory usage may be high
In our case, maxmemory was set to a high amount, then someone on the team changed it to a lower amount after data had already been stored.
Redis' maxmemory volatile-lru policy can fail to free enough memory if the maxmemory limit is already used by the non-volatile keys.