# ceph -v
ceph version 13.2.10 mimic (stable)
# ceph daemon osd.0 config show | grep osd_max_backfills 一个OSD允许的最大backfills数
"osd_max_backfills": "1",
# ceph daemon osd.0 config show | grep osd_recovery_max_active 同一时间内活跃的恢复请求数
"osd_recovery_max_active": "3",
# ceph daemon osd.0 config show | grep osd_recovery_sleep_hdd 下次恢复或回填HDD之前,以秒为单位的睡眠时间
"osd_recovery_sleep_hdd": "0.100000",
# ceph daemon osd.0 config show | grep osd_backfill_scan_min 每次回填扫描的最小对象数
"osd_backfill_scan_min": "64",
# ceph daemon osd.0 config show | grep osd_recovery_op_priority 恢复操作优先级,取值1-63,值越高占用资源越高
"osd_recovery_op_priority": "3",
# ceph tell osd.* injectargs --osd_max_backfills=4
--osd_max_backfills=1
recovery: 70 MiB/s, 17 objects/s
--osd_max_backfills=4
recovery: 205 MiB/s, 51 objects/s
参考: