]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerJohn Spray <john.spray@redhat.com>
Wed, 1 Nov 2017 23:03:22 +0000 (23:03 +0000)
commitb6a000f0efef3cd6a143b82ae33cacf660cd8e4c
tree118f5b48a56bdf7ab72b2d3a558bd5442cc5c22d
parent6090ae6c224904516736c5f1a4ae5bcb6d7e6caa
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>
(cherry picked from commit c09308c49ca087fb8c5e7d4261b0234190f863d9)
src/pybind/mgr/balancer/module.py