业务优先
和恢复优先
。ceph tell osd.* injectargs ‘--osd-max-backfills 1 --osd-recovery-max-active 1 --osd-recovery-max-single-start 1‘
ceph tell osd.* injectargs ‘--osd-recovery-sleep 1‘
ceph tell osd.* injectargs ‘--osd-max-backfills 5 --osd-recovery-max-active 5 --osd-recovery-max-single-start 5‘
ceph tell osd.* injectargs ‘--osd-recovery-sleep 0‘
ceph --admin-daemon /var/run/ceph/ceph-osd.0.asok config show | grep -E "osd_max_backfills|osd_recovery_max_active|osd_recovery_max_single_start|osd_recovery_sleep"
参数解析:
osd_max_backfills : 每个OSD上面控制backfill同时恢复的PG数目
osd_recovery_max_active: 控制同时recovery恢复的请求数目
osd_recovery_max_single_start: 一个PG Recovery对应的Object个数
osd_recovery_sleep: 出队列后先Sleep一段时间,拉长两个Recovery的时间间隔
原文:https://blog.51cto.com/wendashuai/2492689