]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rados/operations/devices: document device failure prediction 27752/head
authorSage Weil <sage@redhat.com>
Tue, 9 Apr 2019 21:45:47 +0000 (16:45 -0500)
committerSage Weil <sage@redhat.com>
Wed, 24 Apr 2019 13:38:06 +0000 (08:38 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 67fadc711aadde093b2ad81442ce5c9e65141af4)

doc/rados/operations/devices.rst

index 2815abbd96f54ab4b7e4ed9b16d3ba2751252987..b3db1e3df85046afe54a696a2394e70738709a1a 100644 (file)
@@ -72,7 +72,42 @@ for a specific timestamp) with::
 Failure prediction
 ------------------
 
-TBD
+Ceph can predict life expectancy and device failures based on the
+health metrics it collects.  There are three modes:
+
+* *none*: disable device failure prediction.
+* *local*: use a pre-trained prediction model from the ceph-mgr daemon
+* *cloud*: share device health and performance metrics an external
+  cloud service run by ProphetStor, using either their free service or
+  a paid service with more accurate predictions
+
+The prediction mode can be configured with::
+
+  ceph config set global device_failure_prediction_mode <mode>
+
+Prediction normally runs in the background on a periodic basis, so it
+may take some time before life expectancy values are populated.  You
+can see the life expectancy of all devices in output from::
+
+  ceph device ls
+
+You can also query the metadata for a specific device with::
+
+  ceph device info <devid>
+
+You can explicitly force prediction of a device's life expectancy with::
+
+  ceph device predict-life-expectancy <devid>
+
+If you are not using Ceph's internal device failure prediction but
+have some external source of information about device failures, you
+can inform Ceph of a device's life expectancy with::
+
+  ceph device set-life-expectancy <devid> <from> [<to>]
+
+Life expectancies are expressed as a time interval so that
+uncertainty can be expressed in the form of a wide interval. The
+interval end can also be left unspecified.
 
 Health alerts
 -------------