Ceph經常使用命令-調整pg

當集羣出現pg嚴重分佈不均時,ceph內部提供了一個reweight自動調節工具:工具

ceph osd reweight-by-utilization

固然也能夠進行手動調整,例如:code

$ ceph osd tree | grep osd.1
1  3                   osd.1  up  1   

$ ceph osd crush reweight osd.1 3.05
reweighted item id 1 name 'osd.1' to 3.05 in crush map

$ ceph osd tree | grep osd.1
1  3.05                osd.1  up  1
相關文章
相關標籤/搜索