redis memory creeps to max then OOM instead of evicting
Redis 7.0.15, maxmemory 4gb, maxmemory-policy allkeys-lru. used_memory creeps to 3.9GB and then writes start failing with OOM instead of evicting anything. INFO stats shows evicted_keys=0. Keys are mostly plain strings with TTLs. Am I misunderstanding allkeys-lru, does it only evict when a write needs the space? And what's the OOM command not allowed error about if eviction is supposed to happen?
3 replies