redis_latency_rca
Diagnose Redis latency by analyzing slowlog patterns and stall indicators, then get actionable causes and fixes.
Instructions
[READ] Diagnose redis latency → slowlog digest + stall causes + actions.
The flagship latency RCA: digests the SLOWLOG by command pattern (flagging O(N)/blocking commands), and reads stall signals from INFO — blocked clients, fork stalls (BGSAVE/AOF rewrite), delayed AOF fsyncs (slow disk), and dataset loading. Every finding carries its numbers. Pass 'telemetry' for pure analysis, or a target to pull live.
Args: slow_us: Slowlog duration (microseconds) at/above which a pattern is flagged (default 10000 = 10ms). telemetry: Injected {slowlog:[{command, durationUs}], blockedClients, latestForkUsec, aofDelayedFsync, aofRewriteInProgress, rdbBgsaveInProgress, loading}; skips the live pull. target: redis target name from config; omit for the default.
Returns dict: {slowlogPatterns, patternsOverThreshold, thresholds, findings:[{cause, action, evidence}], note}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| slow_us | No | ||
| telemetry | No |