]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/progress: optimize global recovery module 43353/head
authorKamoltat <ksirivad@redhat.com>
Mon, 5 Oct 2020 09:38:35 +0000 (09:38 +0000)
committerKamoltat <ksirivad@redhat.com>
Thu, 30 Sep 2021 13:33:03 +0000 (13:33 +0000)
commitf8f4c40275ae22aa3177ef693f26ef804a498ddd
tree3ad3f92f0830c2f9c95e0632087c50d53016d03c
parenta8003f3449a9ae282e1d5b3ef9b8dceb27c38a65
mgr/progress: optimize global recovery module

Instead of fetching `pg_stats` from the python
part of manager module, we filter out the pgs
that are in active + clean state in ActivePyModules.cc
then parse these pgs along with `reported_epoch` and
the `total_num_pgs` of the clusters to global recovery
module.

Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit fa92db1b37e5633e89fc39a4653c39973bf23867)
src/mgr/ActivePyModules.cc
src/pybind/mgr/progress/module.py