meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| vm:proxmox:ceph:pg [2023/07/03 20:37] – niziak | vm:proxmox:ceph:pg [2025/10/31 17:51] (current) – [reweight] niziak | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * Max PG per OSD is 300 | * Max PG per OSD is 300 | ||
| * Result must be rounded up to the nearest power of 2. | * Result must be rounded up to the nearest power of 2. | ||
| + | |||
| + | ===== reweight ===== | ||
| + | |||
| + | Adjust reweight according to current OSD utilisation - to prevent filling one OSD | ||
| + | <code bash> | ||
| + | |||
| + | In CRUSH hierarchies with a smaller number of OSDs, it’s possible for some OSDs | ||
| + | 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: | ||
| + | |||
| + | < | ||
| + | osd reweight-by-pg [< | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | NOTE: | ||
| + | * 101 is a '' | ||
| + | * 0.05 is a '' | ||
| + | * max_osds - maximum number of OSD to be modifies (default is 4) | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Balancer ===== | ||
| + | |||
| + | When the cluster is healthy, the balancer will incrementally move a small fraction of unbalanced PGs in order to improve distribution. This fraction will not exceed a certain threshold that defaults to 5%. | ||
| + | Set it to 1%: | ||
| + | <code bash> | ||
| + | |||