]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/pg_autoscaler: avoid scale-down until there is pressure 38805/head
authorKamoltat <ksirivad@redhat.com>
Thu, 7 Jan 2021 15:39:19 +0000 (15:39 +0000)
committerKamoltat <ksirivad@redhat.com>
Mon, 1 Feb 2021 13:05:54 +0000 (13:05 +0000)
commitdaeb6f6ac0c8f77ae07147f9d1e2ed18d6d8e4cc
treebedfc5641c10ab2a5ec9a07c58a6bfbcb891b5ff
parent39fd806cd45e991deac49c8a938dd6381306facf
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>
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]