1. 数据恢复操作的优先级提到最高级别

  • 默认
# ceph daemon mon.k003 config show | grep osd_recovery_op_priority
    "osd_recovery_op_priority": "3",
  • 参数设置为 63
# ceph tell osd.* injectargs --osd_recovery_op_priority 63
# ceph daemon osd.0 config show | grep osd_recovery_op_priority
    "osd_recovery_op_priority": "63",

2. 回填并发操作数

  • 默认
# ceph daemon mon.k003 config show | grep osd_max_backfills
    "osd_max_backfills": "1",
  • 参数设置为 50
# ceph tell osd.* injectargs --osd_max_backfills 50
# ceph daemon osd.0 config show | grep osd_max_backfills
    "osd_max_backfills": "50",

3. 恢复的并发操作数

  • 每个OSD上同时进行的所有PG的恢复操作(active recovery)的最大数量
# ceph daemon mon.k003 config show | grep osd_recovery_max_active
    "osd_recovery_max_active": "3",
# ceph tell osd.* injectargs --osd_recovery_max_active 50
# ceph daemon osd.0 config show | grep osd_recovery_max_active
    "osd_recovery_max_active": "50",

4. OSD在某个时刻会为一个PG启动恢复操作数

# ceph daemon osd.0 config show | grep osd_recovery_max_single_start
    "osd_recovery_max_single_start": "1",
# ceph tell osd.* injectargs --osd_recovery_max_single_start 5
# ceph daemon osd.0 config show | grep osd_recovery_max_single_start
    "osd_recovery_max_single_start": "5",

参考

  1. 控制数据恢复及回填速度
  2. Ceph 业务优先和恢复优先配置
Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐