]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/pg_autoscaler: Cut back osdmap.get_pools calls
authorKamoltat <ksirivad@redhat.com>
Tue, 25 Jul 2023 13:54:33 +0000 (13:54 +0000)
committerKamoltat <ksirivad@redhat.com>
Mon, 14 Aug 2023 19:48:42 +0000 (19:48 +0000)
commitce45c41bc4c28775a05a23c1bb8a17be46af50d8
tree1dff7fc3697d6ef33c4f818aca5053ad527de27b
parent4a7807978c8e9a0c71db199bb146b0f7ee3dacd1
pybind/mgr/pg_autoscaler: Cut back osdmap.get_pools calls

Problem:
we have been extravagantly using osdmap get calls
which has led to performance issue when `pg_num`
is around ~3000.

Solution:
Limit the use of osdmap get calls by calling it once
and use the data for both functions `maybe_adjust`
and `update_progress_events`.

Fixes: https://tracker.ceph.com/issues/62165
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/pybind/mgr/pg_autoscaler/module.py