]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/pg_autoscaler: treat target ratios as weights
authorJosh Durgin <jdurgin@redhat.com>
Sat, 1 Feb 2020 04:31:40 +0000 (23:31 -0500)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 19 Mar 2020 20:17:54 +0000 (16:17 -0400)
commitb722d32a2496d042974646cc6099744c515aa6b4
tree78f4ec55e3b5387708d9a0e4a52965b5b63900d6
parent2ae1c4092ba96ec28724a7aa761d4af4b15bba2e
mgr/pg_autoscaler: treat target ratios as weights

Normalize across pools so that it's simpler to use - this way you
don't have to adjust every other pool when you add one.

Handle pools with target_bytes by taking their capacity off the top,
and dividing the rest into the pools with a target_ratio.

If both target bytes and ratio are specified, ignore bytes. This
matches the docs and makes accounting simpler.

Fixes: https://tracker.ceph.com/issues/43947
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 435c56a03b7424b23fe977a13c4704304189e829)
qa/workunits/mon/pg_autoscaler.sh
src/pybind/mgr/pg_autoscaler/module.py