]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: do not refresh daemon and device inventory as often
authorSage Weil <sage@redhat.com>
Wed, 4 Mar 2020 23:46:20 +0000 (17:46 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Mar 2020 23:46:20 +0000 (17:46 -0600)
commitd1ad1a9a6974941b2997a9c6620cbfaa3baeea45
treede0e7da8fbcf60f403704087d37105634896164d
parent54e4d2b6630014f15bbc36c9036aa5d6febf32a0
mgr/cephadm: do not refresh daemon and device inventory as often

The device inventory rarely changes.

A daemon inventory of 60s may trigger every time around the loop when
doing upgrades, which is pretty slow (esp since it's currently done
synchronously).  We're doing a good job (I think?) of queueing refreshes,
so the only reason to time this data out is to catch daemon stops that
are caused by external factors.

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py