meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
vm:proxmox:ceph:pg [2023/07/11 12:06] niziakvm:proxmox:ceph:pg [2025/10/31 17:51] (current) – [reweight] niziak
Line 17: Line 17:
 to get more PGs than other OSDs, resulting in a higher load. You can reweight  to get more PGs than other OSDs, resulting in a higher load. You can reweight 
 OSDs by PG distribution to address this situation by executing the following: OSDs by PG distribution to address this situation by executing the following:
-<code bash>ceph osd reweight-by-pg 101</code> 
  
-NOTE: 101 is a ''oload'' parameter, which means ''overload percentage for consideration 101%''. For example, an argument of 200 would reweight OSDs which are twice as utilized as the average OSD.+<code> 
 +osd reweight-by-pg [<oload:int>] [<max_change:float>] [<max_osds:int>] [<pools>...]            reweight OSDs by PG distribution [overload-percentage-for-consideration, default 120] 
 +</code> 
 + 
 +<code bash>ceph osd reweight-by-pg 101 0.05 999</code> 
 + 
 +NOTE:  
 +  * 101 is a ''oload'' parameter, which means ''overload percentage for consideration 101%''. For example, an argument of 200 would reweight OSDs which are twice as utilized as the average OSD. 
 +  * 0.05 is a ''mach_change'' - maximum modification of weight 
 +  * max_osds - maximum number of OSD to be modifies (default is 4) 
 + 
 +