ceph 集群有 osd down 后 rebalance 慢,修改参数

  1. 查看当前 osd 配置。需要在 osd 坐在物理机中执行命令
ceph daemon osd.5 config show | grep recovery
  1. 增加恢复线程.HDD 集群不建议超过 3,否则磁盘 IOPS 可能被打满。
ceph tell osd.* injectargs '--osd_recovery_threads 2'
  1. 每个 OSD 的恢复并发 PG 数
ceph tell osd.* injectargs '--osd_recovery_max_active 5'
  1. 恢复优先级(10 → 62)
ceph tell osd.* injectargs '--osd_recovery_op_priority 62'
  1. 避免 client 压制 recovery。client 优先级 低于 recovery
ceph tell osd.* injectargs '--osd_client_op_priority 4'
  1. 单个 OSD 同时执行多少 backfill 流
ceph tell osd.* injectargs '--osd_max_backfills 4'
  1. 同一时间最多开始多少个 recovery 任务
ceph tell osd.* injectargs '--osd_recovery_max_single_start 8'
  1. op 线程池并发
ceph tell osd.105 injectargs '--osd_op_num_shards 5'
  1. op 多线程
ceph tell osd.103 injectargs '--osd_op_num_threads_per_shard 2'
  1. OSD 进程的内存缓存
    默认 1GB 推荐 4GB
ceph tell osd.103 injectargs '--bluestore_cache_size 4294967296'
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容