]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/pg_autoscaler: apply bias to pg_num selection 27387/head
authorSage Weil <sage@redhat.com>
Mon, 25 Mar 2019 11:39:28 +0000 (06:39 -0500)
committerSage Weil <sage@redhat.com>
Thu, 4 Apr 2019 22:05:20 +0000 (17:05 -0500)
commit791dd8c302cca70e43e54becc383f6bd5c4a7196
tree3405113e8514a7a6e9eccf852aebdc0a5c0cfaa6
parent51090e139e8052742d77d92bd3993d0423f0d58c
mgr/pg_autoscaler: apply bias to pg_num selection

This is a relatively naive way to apply the bias: we just multiply it
to whatever we would have chosen.  A more clever approach would be to
factor this into the overall cluster-wide PG budget, so that biasing one
pool's PGs up would put downward pressure on other pools.  That is
significantly more complicated, however, and (I think) not worth the
effort.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e7ad0eeaaa3a73b5b78764d86eb634ca7072afd1)
src/pybind/mgr/pg_autoscaler/module.py