]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/progress: introduce 5 second sleep interval
authorKamoltat <ksirivad@redhat.com>
Tue, 13 Jul 2021 19:06:44 +0000 (19:06 +0000)
committerKamoltat <ksirivad@redhat.com>
Thu, 30 Sep 2021 13:33:03 +0000 (13:33 +0000)
commit49451d547ca2637c8afd5375870320da0c5953bf
treef4d9a3c700042ab83057abc95d23e47ceea02e16
parent419452f09c256c94eae40fe9a7a1857ac2578e75
pybind/mgr/progress: introduce 5 second sleep interval

Current progress module only checks pg stats
and osdmap when it is notified by the cluster.
However, this is expensive in large cluster
with many pools and osds. we
change it to only check both pg stats and osdmap
every 5 seconds.

in the function _osd_in_out() we now calculate
`is_relocated` by: old_osds != new_osds such that
it does not matter if the difference between osds
are positive or negative.

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