延迟重置

Syntax
LATENCY RESET [event [event ...]]
Available since:
2.8.13
Time complexity:
O(1)
ACL categories:
@admin, @slow, @dangerous,

LATENCY RESET 命令重置所有或仅某些事件的延迟峰值时间序列。

当命令在没有参数的情况下调用时,它会重置所有事件,丢弃当前记录的延迟峰值事件,并重置最大事件时间寄存器。

可以通过提供event名称作为参数来仅重置特定事件。

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

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

RESP2/RESP3 回复

Integer reply: the number of event time series that were reset.
RATE THIS PAGE
Back to top ↑