| ignore-bytes | 碎片小于该值不整理 |
|---|---|
| threshold-lower/upper | 启动与加力的碎片率 |
| cycle-min/max | 每轮 CPU 时间占比上下限 |
示例
示例
redis-cli CONFIG GET active-defrag-*
redis-cli CONFIG SET active-defrag-cycle-max 25CPU 敏感实例压低 cycle-max,让整理长时间小幅进行。
active-defrag-ignore-bytes 设定最小碎片量门槛,active-defrag-threshold-lower/upper 控制启停百分比,cycle-min/max 控制每轮 CPU 占比。
| ignore-bytes | 碎片小于该值不整理 |
|---|---|
| threshold-lower/upper | 启动与加力的碎片率 |
| cycle-min/max | 每轮 CPU 时间占比上下限 |
redis-cli CONFIG GET active-defrag-*
redis-cli CONFIG SET active-defrag-cycle-max 25