# 错误：延迟监控阈值超出，命令 'GET' 执行时间过长

- **ID:** `redis/latency-monitor-threshold-exceeded`
- **领域:** redis
- **类别:** performance_error
- **验证级别:** ai_generated
- **修复率:** 85%

## 根因

某个命令的执行时间超过了延迟监控阈值，表明操作缓慢或系统过载。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Redis 6.2 | active | — | — |
| Redis 7.0 | active | — | — |
| Redis 7.2 | active | — | — |

## 解决方案

1. ```
   使用 SLOWLOG GET 识别慢命令并优化（例如减小键大小、使用管道或拆分大操作）。
   ```
2. ```
   运行：redis-cli --latency 检查网络延迟；如果高，将 Redis 移动到更靠近客户端的位置或使用更快的网络。
   ```

## 无效尝试

- **Increase latency-monitor-threshold to a very high value** — Masking the symptom without addressing root cause (e.g., slow commands, large keys, or network issues). (40% 失败率)
- **Disable latency monitoring entirely with CONFIG SET latency-monitor-threshold 0** — Removes visibility into performance issues, making debugging harder later. (30% 失败率)
