Runbook: Redis High Memory Usage
Trigger: Alert RedisMemoryCritical (>85% utilization). Impact: Rate limiters fail open or close, user sessions drop, and Email Streams halt.
Steps
- Identify the bloated keys:bash
redis-cli --bigkeys - Check for stalled Stream consumers:bashIf
redis-cli XINFO GROUPS sred:email:sendpendingis extremely high, restart theEmailStreamConsumerpods. - Emergency Eviction (If 99% usage): Temporarily change the eviction policy to drop volatile keys:bash
redis-cli config set maxmemory-policy volatile-lru
Escalation
If memory does not stabilize within 5 minutes, page the @backend-oncall team.
Post-action
- File an incident ticket.
- Schedule a Postmortem to identify why the keys were not expiring.