From d1ad1a9a6974941b2997a9c6620cbfaa3baeea45 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 4 Mar 2020 17:46:20 -0600 Subject: [PATCH] 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 --- src/pybind/mgr/cephadm/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', }, { -- 2.39.5