]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
src/pybind/mgr/balancer/module.py: improve scoring method
authorSpandan Kumar Sahu <spandankumarsahu@gmail.com>
Sun, 6 Aug 2017 22:31:57 +0000 (04:01 +0530)
committerSage Weil <sage@redhat.com>
Wed, 6 Sep 2017 20:46:40 +0000 (16:46 -0400)
commitc09308c49ca087fb8c5e7d4261b0234190f863d9
treec8b6bdd58d49dd69539a57a7927072661ae0cd53
parent7a00e02acd1b2ff21dac829de30f80fd69eae602
src/pybind/mgr/balancer/module.py: improve scoring method

* score lies in [0, 1), 0 being perfect distribution
* use shifted and scaled cdf of normal distribution
  to prioritize highly over-weighted device.
* consider only over-weighted devices to calculate score

Signed-off-by: Spandan Kumar Sahu <spandankumarsahu@gmail.com>
src/pybind/mgr/balancer/module.py