Maxim Mironjuk
-
June 24, 2025
Sporadic latency spikes are among the most unpleasant performance problems in a Redis instance, because they can neither be reproduced with a single command nor explained by a simple load measurement. The built-in latency monitor was designed exactly for this case: it internally logs several event classes, from slow commands through fork operations to the expiry cycle of expired keys, and exposes them through the LATENCY HISTORY, LATENCY LATEST, and LATENCY DOCTOR commands. This article covers how these event classes work in detail, how the latency monitor combines usefully with the classic slowlog, and what a systematic diagnostic workflow looks like when latency problems occur only occasionally and seemingly at random.