ceph 数据恢复和回填速度 重建osd 加快数据恢复

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 业务优先和恢复优先配置
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值