]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/pg_autoscaler: avoid scale-down until there is pressure 39247/head
authorKamoltat <ksirivad@redhat.com>
Thu, 7 Jan 2021 15:39:19 +0000 (15:39 +0000)
committerKamoltat <ksirivad@redhat.com>
Wed, 3 Feb 2021 07:51:54 +0000 (07:51 +0000)
commitde2a4684ea2e8719cc18a70d9f4be9715e409264
treec27de121452b1d37bc832174d7337e8331601f04
parent74275226ac79999bfd40e683dc9a1309e76033bf
mgr/pg_autoscaler: avoid scale-down until there is pressure

The autoscaler will start out with scaling each
pools to have a full complements of pgs from the start
and will only decrease it when pools need more due to
increased usage.

Introduced a unit test that tests only the
function get_final_pg_target_and_ratio() which
deals with the distrubtion of pgs amongst the
pools

Edited workunit script to reflect the change
of how pgs are calculated and distrubted.

Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit daeb6f6ac0c8f77ae07147f9d1e2ed18d6d8e4cc)
qa/workunits/mon/pg_autoscaler.sh
src/pybind/mgr/pg_autoscaler/__init__.py
src/pybind/mgr/pg_autoscaler/module.py
src/pybind/mgr/pg_autoscaler/tests/__init__.py [new file with mode: 0644]
src/pybind/mgr/pg_autoscaler/tests/test_cal_final_pg_target.py [new file with mode: 0644]