Created attachment 1152279 [details] Steps Description of problem: OSD's which are in "Down" State are also getting considered while reweight-by-utilization. Version-Release number of selected component (if applicable): ceph version 0.94.5-6redhat1trusty How reproducible: Always Steps to Reproduce: 1. Mark 1 OSD down. 2. Immediately start the reweight-by-utilization, with the value which satisfies the "Down" OSD condition. e.g. Down OSD 0 0.89999 0.80005 926G 782G 143G 84.50 1.10 sudo ceph osd test-reweight-by-utilization 108 .05 4 Actual results: "Down" OSD is also considered while reweighting Expected results: "Down" OSD should not be considered for reweight. Additional info: PFA, Detailed Steps
So it should factor them into the average, but not reweight them?
It feels like we should consider all non-out OSDs, regardless of whether they are up or down, since up/down is normally transient.
Agreed.