From: Sage Weil Date: Wed, 4 Mar 2020 23:46:20 +0000 (-0600) Subject: mgr/cephadm: do not refresh daemon and device inventory as often X-Git-Tag: v15.1.1~107^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d1ad1a9a6974941b2997a9c6620cbfaa3baeea45;p=ceph-ci.git 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 --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 1c6ed178cae..aeb1463ab1f 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -545,13 +545,13 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule): { 'name': 'device_cache_timeout', 'type': 'secs', - 'default': 10 * 60, + 'default': 30 * 60, 'desc': 'seconds to cache device inventory', }, { 'name': 'daemon_cache_timeout', 'type': 'secs', - 'default': 60, + 'default': 10 * 60, 'desc': 'seconds to cache service (daemon) inventory', }, {