LATENCY GRAPH

语法
LATENCY GRAPH event
可用版本
Redis 开源版 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 秒前。

图表在最小-最大范围内进行了归一化,因此零(最下面一行中的下划线)代表最小值,最上面一行中的 # 代表最大值。

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

RESP2/RESP3 回复

批量字符串回复: Latency graph
为此页面评分
返回顶部 ↑