The cache that started dropping sessions
A retailer's self-managed Redis 7.0 holds sessions and carts, and during a sale it reaches maxmemory and starts dropping live sessions. OSSeva Assure works the incident 24/7, and Operate alerts on memory and eviction before the limit is hit.
Challenge
When Redis reaches maxmemory, the eviction policy decides what happens next. With noeviction, Redis refuses writes, so a customer cannot add to a cart or start a session. With a policy such as allkeys-lru, Redis starts removing keys, and it does not know that one key is a disposable page fragment and another is a live checkout. A single instance that holds both caches and sessions fails one way or the other under pressure.
The policy is rarely chosen on purpose. It is the default from a template or an old runbook, set when the instance held only cache data. Sessions and carts were added later, and nobody revisited it. The same applies to anything queue-like on the instance: a queue that gets evicted loses its messages.
The incident is also hard to see in time. Memory climbs with traffic, so a quiet week hides a limit that a sale exposes. Persistence adds pressure of its own. RDB snapshots and AOF rewrites fork the process, and copy-on-write can push memory use well past the dataset size, particularly on instances sized close to the host's available memory. Replication to replicas is asynchronous by default, and a failover during the incident can promote a replica that lacks some data.
Environment
Self-managed Redis 7.0, which reached end of life on 29 July 2024, with 7.0.15 as its final community release, running on virtual machines or Kubernetes behind a retail storefront. Sentinel or Redis Cluster provides failover, and replicas carry the sessions and carts.
The same instances may also hold rate-limit counters and cached catalog data, so keys with very different value share one memory limit.
Options
Resize the host and move on. It fixes the next peak and hides the policy problem. It does not tell you which keys should have been evictable.
Split sessions and carts from the cache. This is the real fix in most cases: separate instances with separate policies, so cache data can be evicted and session data cannot. It needs application changes and a migration plan.
Move to a managed Redis service. The provider runs the instances, but the policy decision and the key layout are still yours.
Use OSSeva for the incident and the monitoring. Assure handles the incident 24/7 and reviews the setup. Operate watches memory, eviction and replication lag so the next limit is seen before it is reached. OSSeva works on the instances you run, on the line you run.
Approach
OSSeva Assure includes 24/7 reactive support. When memory or eviction trips, an engineer works the incident, identifies which keys are consuming memory and which policy is in force, and recommends the change: a different eviction policy, a split of session and cache data, or more headroom for persistence. Assure also includes security reviews of the ACL and authentication setup, the RDB and AOF persistence configuration and the Redis Cluster topology.
OSSeva Operate adds 24/7 instance and cluster health monitoring, memory usage and eviction policy alerting, and replication lag monitoring, so a growing instance is flagged before it reaches maxmemory. It includes a 15-minute response to P1 incidents, a named senior Redis engineer on the account and quarterly performance reviews.
OSSeva Patch ships patched, signed builds of Redis 6.2.x and 7.0.x under the original BSD license, so the same instances stay patched while the work goes on. Redis 7.2.x and Valkey 7.2.x, 8.x and 9.x are supported as well.
What this delivers
A memory incident that ends with a documented cause and an eviction policy chosen for each kind of data, alerts on memory and eviction before the limit is reached, and replication lag visible before a failover depends on it. The engagement delivers the incident response, the configuration review and the monitoring. OSSeva Redis support is priced per instance cluster, not per GB of memory. Book a 15-minute discovery call for a quote.
What does Redis do when it reaches maxmemory?
The eviction policy decides. With noeviction it refuses writes. With a policy such as allkeys-lru it starts removing keys, which can include live sessions.
Which eviction policy should a session store use?
It depends on the data. An evicting policy drops live sessions under pressure and noeviction refuses writes, so sessions usually belong on their own instance with headroom, and cache data on another instance where eviction is acceptable.
Can OSSeva support Redis 7.0 after end of life?
Yes. Redis 7.0 reached end of life on 29 July 2024, and OSSeva ships patched, signed 7.0.x builds under the original BSD license, with Assure and Operate on top.
Does Operate alert on eviction and memory?
Yes. Operate includes memory usage and eviction policy alerting, replication lag monitoring and 24/7 instance and cluster health monitoring.