延迟图

语法
LATENCY GRAPH event
从以下位置开始可用:
2.8.13
时间复杂度:
O(1)
ACL 类别:
@admin, @slow, @dangerous,

为指定事件生成 ASCII 艺术样式图形。

LATENCY GRAPH让您直观地了解event通过最先进的可视化。它可用于在采取解析原始数据等方法之前快速掌握情况LATENCY HISTORY或外部工具。

的有效值event是:

  • active-defrag-cycle
  • aof-fsync-always
  • aof-stat
  • aof-rewrite-diff-write
  • aof-rename
  • aof-write
  • aof-write-active-child
  • aof-write-alone
  • aof-write-pending-fsync
  • command
  • expire-cycle
  • eviction-cycle
  • eviction-del
  • fast-command
  • fork
  • rdb-unlink-temp-file

例子

127.0.0.1:6379> latency reset command
(integer) 0
127.0.0.1:6379> debug sleep .1
OK
127.0.0.1:6379> debug sleep .2
OK
127.0.0.1:6379> debug sleep .3
OK
127.0.0.1:6379> debug sleep .5
OK
127.0.0.1:6379> debug sleep .4
OK
127.0.0.1:6379> latency graph command
command - high 500 ms, low 101 ms (all time high 500 ms)
--------------------------------------------------------------------------------
   #_
  _||
 _|||
_||||

11186
542ss
sss

每个图形列下的垂直标签表示秒数, 事件发生的几分钟、几小时或几天前。例如,“15s” 表示 第一个绘制的事件发生在 15 秒前。

该图形以最小-最大比例进行标准化,以便零(下划线 在下行中)是最小值,较高行中的 # 是最大值。

有关更多信息,请参阅 Latency Monitoring Framework 页面

RESP2/RESP3 回复

批量字符串回复:延迟图