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)