最新延迟

Syntax
LATENCY LATEST
Available since:
2.8.13
Time complexity:
O(1)
ACL categories:
@admin, @slow, @dangerous,

LATENCY LATEST 命令报告记录的最新延迟事件。

每个报告的事件都有以下字段:

  • 事件名称。
  • 事件的最新延迟峰值对应的Unix时间戳。
  • 最新事件延迟(以毫秒为单位)。
  • 此事件的历史最大延迟。

"All-time" 表示自 Redis 实例启动以来的最大延迟,或者自事件重置 LATENCY RESET 以来的时间。

示例

127.0.0.1:6379> debug sleep 1
OK
(1.00s)
127.0.0.1:6379> debug sleep .25
OK
127.0.0.1:6379> latency latest
1) 1) "command"
   2) (integer) 1405067976
   3) (integer) 251
   4) (integer) 1001

更多信息请参考延迟监控框架页面

RESP2/RESP3 回复

Array reply: an array where each element is a four elements array representing the event's name, timestamp, latest and all-time latency measurements.
RATE THIS PAGE
Back to top ↑