LATENCY

Since 1.1.0ObservabilityChanged in 1.2.1

Syntax

LATENCY
  • Flags: admin
  • ACL categories: @admin, @dangerous, @slow
  • Arity: -2

History

  • 1.2.1: acl categories: removed server

The latency monitor: it records, for each kind of event, the times it took longer than latency-monitor-threshold milliseconds, which is 0, off, by default. Events include command (a slow command), fast-command (a slow O(1) or O(log N) one), and expire-cycle (expiring keys in the background). See its subcommands.

Subcommands

  • LATENCY DOCTOR: Reports, in words, the events whose latest samples were slow: as warnings from 100 ms, as critical from 500 ms.
  • LATENCY GRAPH: Draws an event's samples as a small text chart, with the highest and lowest.
  • LATENCY HELP: Lists the LATENCY subcommands, with their arguments and a line on what each does: DOCTOR, GRAPH, HISTORY, LATEST, RESET, HISTOGRAM and HELP itself.
  • LATENCY HISTOGRAM: Returns, for each command named, or every command called, its number of calls and how many of them took less than each power of two of microseconds.
  • LATENCY HISTORY: Returns the samples the latency monitor has recorded for one event, oldest first: for each, the Unix time in seconds and how many milliseconds it took.
  • LATENCY LATEST: Returns each event's latest sample: the event, the Unix time, the milliseconds it took, and the most any of its samples took.
  • LATENCY RESET: Clears what the latency monitor has recorded: the samples of every event, or, with names, of those events only.