| 位置 | INFO stats 的 evicted_keys |
|---|---|
| 解读 | 增量速率比总量更重要 |
| 配套 | 结合命中率与内存水位 |
查看
查看
redis-cli INFO stats | Select-String evicted_keys
redis-cli INFO stats | Select-String keyspace_hits定期采样做差分,得到淘汰速率曲线,比单点数值有用得多。
evicted_keys 统计被淘汰键的累计数量,是判断内存压力与淘汰强度的直观指标;短时间飙升说明容量已跟不上写入。
| 位置 | INFO stats 的 evicted_keys |
|---|---|
| 解读 | 增量速率比总量更重要 |
| 配套 | 结合命中率与内存水位 |
redis-cli INFO stats | Select-String evicted_keys
redis-cli INFO stats | Select-String keyspace_hits