]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/pg_autoscaler: Introduce dynamic threshold to improve scaling sensitivity 66871/head
authorPrashant D <pdhange@redhat.com>
Fri, 26 Sep 2025 05:16:29 +0000 (01:16 -0400)
committerPrashant D <pdhange@redhat.com>
Fri, 9 Jan 2026 18:53:06 +0000 (13:53 -0500)
commitb907e0b2ebf001b67f0e7d1851d1415576d46a07
tree6c7ae2f1881c4645ae4208cd1f9c217f6a60c61b
parentba0181c0fc1118f6199dc21db58da8ccc94ca0b7
pybind/mgr/pg_autoscaler: Introduce dynamic threshold to improve scaling sensitivity

The scaling threshold is now dynamically adjusted within
_get_pool_pg_targets() based on the calculated ideal PG
count (final_pg_target).
This change allows the autoscaler to be more aggressive
when adjusting smaller pools, and less aggressive when
adjusting very large pools. Also improves logging to
clarify why scaling decisions are made or skipped.

Fixes: https://tracker.ceph.com/issues/73272
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit e4d515d300437fc2b227c5fb8ac693d85bb7d291)
doc/rados/operations/placement-groups.rst
src/pybind/mgr/pg_autoscaler/module.py