Repository navigation
Closed
Description
thank you for this very powerful tool!
do you think to add support for device-class?
currently balance-bucket on a host bucket is not working (imho) if the host has a mix of nvme and hdd osd's.
two issues:
- should not move pg's to another device class
- should not move pg's from an almost empty osd to an almost full osd
cheers
ewceph1-prov01-prod:~ # ceph osd df tree name ewos2-ceph10-prod
ID CLASS WEIGHT REWEIGHT SIZE RAW USE DATA OMAP META AVAIL %USE VAR PGS STATUS TYPE NAME
-52 56.63736 - 57 TiB 11 TiB 11 TiB 64 GiB 58 GiB 45 TiB 19.69 1.00 - host ewos2-ceph10-prod
182 hdd 3.65140 1.00000 3.7 TiB 3.0 TiB 3.0 TiB 24 KiB 14 GiB 693 GiB 81.46 4.14 54 up osd.182
191 hdd 3.65140 1.00000 3.7 TiB 2.5 TiB 2.5 TiB 510 KiB 12 GiB 1.1 TiB 68.57 3.48 43 up osd.191
200 hdd 3.65140 1.00000 3.7 TiB 2.2 TiB 2.2 TiB 63 KiB 12 GiB 1.4 TiB 61.22 3.11 43 up osd.200
208 hdd 3.65140 1.00000 3.7 TiB 2.0 TiB 1.9 TiB 32 KiB 10 GiB 1.7 TiB 53.77 2.73 39 up osd.208
216 nvme 4.67020 1.00000 4.7 TiB 181 GiB 151 GiB 19 GiB 1.5 GiB 4.5 TiB 3.79 0.19 141 up osd.216
226 nvme 4.67020 1.00000 4.7 TiB 181 GiB 146 GiB 24 GiB 1.0 GiB 4.5 TiB 3.78 0.19 136 up osd.226
232 nvme 4.67020 1.00000 4.7 TiB 174 GiB 145 GiB 18 GiB 1.1 GiB 4.5 TiB 3.63 0.18 138 up osd.232
241 nvme 4.67020 1.00000 4.7 TiB 162 GiB 148 GiB 23 KiB 1024 MiB 4.5 TiB 3.38 0.17 138 up osd.241
250 nvme 4.67020 1.00000 4.7 TiB 162 GiB 147 GiB 1.3 GiB 979 MiB 4.5 TiB 3.38 0.17 138 up osd.250
259 nvme 4.67020 1.00000 4.7 TiB 159 GiB 145 GiB 521 MiB 1.1 GiB 4.5 TiB 3.32 0.17 137 up osd.259
268 nvme 4.67020 1.00000 4.7 TiB 161 GiB 147 GiB 647 MiB 1.2 GiB 4.5 TiB 3.36 0.17 136 up osd.268
277 nvme 4.67020 1.00000 4.7 TiB 166 GiB 152 GiB 617 MiB 1.1 GiB 4.5 TiB 3.47 0.18 139 up osd.277
286 nvme 4.67020 1.00000 4.7 TiB 164 GiB 150 GiB 51 KiB 1024 MiB 4.5 TiB 3.44 0.17 141 up osd.286
TOTAL 57 TiB 11 TiB 11 TiB 64 GiB 58 GiB 45 TiB 19.69
MIN/MAX VAR: 0.17/4.14 STDDEV: 29.68
ewceph1-prov01-prod:~ # /root/go/bin/pgremapper balance-bucket ewos2-ceph10-prod --max-backfills 10 --target-spread 1
The following changes would be made to the upmap exception table:
pg 50.292: [256->221,+216->208]
pg 50.296: [+286->208]
pg 50.299: [+232->208]
pg 50.29d: [+216->208]
pg 50.29f: [+277->208]
pg 50.2a7: [+286->191]
pg 50.2a8: [235->217,213->249,+216->200]
pg 50.2ab: [154->151,+286->208]
pg 50.2b2: [213->285,+216->200]
pg 50.2ba: [+286->191]
Legend: +new mapping - -removed mapping - !stale mapping (will be removed) - kept mapping
No changes made - use --yes to apply changes.
Metadata
Metadata
Assignees
Labels
No labels
Activity
baergj commentedon Jan 28, 2022
That should be pretty easy to accommodate via something like this:
Would that work for your use case?
scheuref commentedon Jan 28, 2022
that would be fantastic! :-D
thank you for your reply and creativity!
baergj commentedon Jan 28, 2022
👍 No guarantee on when we'll get to it, but I'll put it on the list. As always, contributions welcome from those who feel comfortable. :)
k0ste commentedon Jan 29, 2022
@scheuref I was make a try to add
device-classfilter tobalance-bucketcommand in #20, can you test it on your environment (without--yesfor a first time 🙂)?Thanks!
scheuref commentedon Jan 29, 2022
@k0ste oh great many thanks!
I will give a test tomorrow!
scheuref commentedon Feb 9, 2022
@baergj @k0ste
did a test case and LGTM.
Many Thanks for your great work!