]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/progress: optimize global recovery module
authorKamoltat <ksirivad@redhat.com>
Mon, 5 Oct 2020 09:38:35 +0000 (09:38 +0000)
committerKamoltat <ksirivad@redhat.com>
Wed, 22 Sep 2021 19:18:31 +0000 (19:18 +0000)
commitfa92db1b37e5633e89fc39a4653c39973bf23867
tree4fcf5bc96b72af3d4283302de219a6db04c7e127
parentecd57a59dfcbe256c1eb5291f5702c446c20b3b9
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>
src/mgr/ActivePyModules.cc
src/pybind/mgr/progress/module.py