]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: add crush_compat_metrics param 25291/head
authorDan van der Ster <daniel.vanderster@cern.ch>
Sat, 15 Sep 2018 12:46:00 +0000 (14:46 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Nov 2018 22:07:26 +0000 (23:07 +0100)
commit2587989151fbaa2c698ee9110eb01bed8e50cb02
treebad0e0a32f60d75c182b18e93b03a6d83e55d76c
parentc15548932faa41384306b1ea6f216564d9acd3d6
mgr/balancer: add crush_compat_metrics param

Add a crush_compat_metrics options to allow choosing between pgs,
objects, and bytes when rebalancing with crush-compat mode.

Multi-values are supported, so that the placement scoring can be
a function of several metrics. By default we score based on the
mean of pgs, objects, and bytes scores for all roots.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
(cherry picked from commit 1f6866c15307a2a681d0e5c0293797da7fa5d1de)
src/pybind/mgr/balancer/module.py