]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc/mgr/diskprediction: add a configuration section
authorKefu Chai <kchai@redhat.com>
Mon, 17 Aug 2020 08:36:09 +0000 (16:36 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 19 Aug 2020 03:08:39 +0000 (11:08 +0800)
also link to monitoring, as diskprediction cannot function without
enabling monitoring.

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/mgr/diskprediction.rst
doc/rados/operations/devices.rst

index e34a74d0598d9cc386d047d597e30a20bfcd6653..af34a037c44661f03bea5db5acbe75efbb503c29 100644 (file)
@@ -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 <enabling-monitoring>`.
+
 Run the following command to retrieve the life expectancy of given device.
 
 ::
 
     ceph device predict-life-expectancy <device id>
 
+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 <interval-in-seconds>
 
 Debugging
 =========
index 147cc54b9763f71fde1747cbbe1424393f34b980..2dd0917222cf5467925aaf4bb29434ead162df40 100644 (file)
@@ -47,6 +47,8 @@ By default, the `identification` light is used.
 
      ceph orch status
 
+.. _enabling-monitoring:
+
 Enabling monitoring
 -------------------