Redis › Redis Monitoring & Observability
How would you diagnose a sudden, unexplained increase in Redis latency using the various monitoring tools and commands available?
AdvancedAnswer
You would check the slow log for any commands taking unusually long, review the INFO command's output for signs of memory pressure or high fragmentation, check whether a background save or AOF rewrite is currently in progress since these can temporarily affect performance, and examine client connection counts and command rates for any unusual spikes that might be overwhelming the server.
SLOWLOG GET 20
INFO persistence
INFO clients
INFO statsReal-world example A team troubleshooting a sudden latency spike discovers a large background AOF rewrite had coincided with an unusually high traffic period, explaining the temporary performance degradation and prompting them to reschedule rewrites during quieter periods.