延迟医生

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

LATENCY DOCTORCommand 报告与延迟相关的不同问题,并就可能的补救措施提供建议。

此命令是延迟监控中最强大的分析工具 框架,并能够提供额外的统计数据,如平均 延迟峰值、中位数偏差和人类可读之间的时间段 事件分析。对于某些事件,例如fork、其他信息 ,例如系统 fork 进程的速率。

如果您是 寻求有关 Latency 相关问题的帮助。

例子

127.0.0.1:6379> latency doctor

Dave, I have observed latency spikes in this Redis instance.
You don't mind talking about it, do you Dave?

1. command: 5 latency spikes (average 300ms, mean deviation 120ms,
    period 73.40 sec). Worst all time event 500ms.

I have a few advices for you:

- Your current Slow Log configuration only logs events that are
    slower than your configured latency monitor threshold. Please
    use 'CONFIG SET slowlog-log-slower-than 1000'.
- Check your Slow Log to understand what are the commands you are
    running which are too slow to execute. Please check
    http://redis.io/commands/slowlog for more information.
- Deleting, expiring or evicting (because of maxmemory policy)
    large objects is a blocking operation. If you have very large
    objects that are often deleted, expired, or evicted, try to
    fragment those objects into multiple smaller objects.

注意:医生的心理行为不稳定,因此我们建议仔细与之互动。

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

RESP2 回复

批量字符串回复:人类可读的延迟分析报告。

RESP3 回复

逐字字符串回复:人类可读的延迟分析报告。
为本页评分
返回顶部 ↑