]> 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>
Tue, 13 Jul 2021 19:30:42 +0000 (19:30 +0000)
commit4504749b81f9cb11d92d5f280565aff3f243adf3
tree075e213e7db4fba968337f2fea4f052cc6642643
parent0509deb6a895a98e3e582cbb849606bc559b963c
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>
src/pybind/mgr/progress/module.py