redis_memory_pressure_rca
Identify the cause of Redis memory pressure—eviction, fragmentation, or big keys—and get a recommended action with key metrics.
Instructions
[READ] Diagnose redis memory pressure → cause + action, with numbers.
The flagship memory RCA: used vs maxmemory (+ eviction policy — noeviction near the limit means writes will OOM), evicted-keys pressure, fragmentation ratio (high = defrag, below 1 = likely swapping), and the SCAN-budgeted big-key sample. Every finding carries its numbers, not a black-box verdict. Pass 'telemetry' for pure analysis, or a target to pull live.
Args: used_pct: used/maxmemory %% at/above which pressure is flagged (default 85). telemetry: Injected {memory:{...memory_stats fields}, evictedKeys, bigKeys:{topKeys:[...]}}; skips the live pull. target: redis target name from config; omit for the default.
Returns dict: {pressure, usedPctOfMax, maxmemoryPolicy, fragmentationRatio, evictedKeys, thresholds, findings:[{cause, action, evidence}], note}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| used_pct | No | ||
| telemetry | No |