From: Kefu Chai Date: Mon, 17 Aug 2020 08:36:09 +0000 (+0800) Subject: doc/mgr/diskprediction: add a configuration section X-Git-Tag: v16.1.0~1382^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36680%2Fhead;p=ceph.git doc/mgr/diskprediction: add a configuration section also link to monitoring, as diskprediction cannot function without enabling monitoring. Signed-off-by: Kefu Chai --- diff --git a/doc/mgr/diskprediction.rst b/doc/mgr/diskprediction.rst index e34a74d0598d..af34a037c446 100644 --- a/doc/mgr/diskprediction.rst +++ b/doc/mgr/diskprediction.rst @@ -24,13 +24,23 @@ To disable prediction,:: ceph config set global device_failure_prediction_mode none -The local predictor module requires at least six datasets of device health metrics to implement the prediction. +*diskprediction_local* requires at least six datasets of device health metrics to +make prediction of the devices' life expentancy. And these health metrics are +collected only if health monitoring is :ref:`enabled `. + Run the following command to retrieve the life expectancy of given device. :: ceph device predict-life-expectancy +Configuration +============= + +The module performs the prediction on a daily basis by default. You can adjust +this interval with:: + + ceph config set mgr mgr/diskprediction_local/predict_interval Debugging ========= diff --git a/doc/rados/operations/devices.rst b/doc/rados/operations/devices.rst index 147cc54b9763..2dd0917222cf 100644 --- a/doc/rados/operations/devices.rst +++ b/doc/rados/operations/devices.rst @@ -47,6 +47,8 @@ By default, the `identification` light is used. ceph orch status +.. _enabling-monitoring: + Enabling monitoring -------------------