You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/mgr/diskprediction.rst
+33-20Lines changed: 33 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,48 +4,61 @@
4
4
Diskprediction Module
5
5
=====================
6
6
7
-
The *diskprediction* module leverages Ceph device health check to collect disk health metrics and uses internal predictor module to produce the disk failure prediction and returns back to Ceph. It doesn't require any external server for data analysis and output results. Its internal predictor's accuracy is around 70%.
7
+
The ``diskprediction`` module leverages Ceph device health checks to collect
8
+
disk health metrics and uses the internal predictor module to produce disk
9
+
failure predictions and returns them back to Ceph. It requires no external
10
+
server for data analysis and the outputting of results. Its internal
11
+
predictor's accuracy is around 70%.
8
12
9
13
Enabling
10
14
========
11
15
12
-
Run the following command to enable the *diskprediction_local* module in the Ceph
13
-
environment::
16
+
Run the following command to enable the ``diskprediction_local`` module in the
17
+
Ceph environment:
14
18
15
-
ceph mgr module enable diskprediction_local
19
+
.. prompt:: bash #
16
20
21
+
ceph mgr module enable diskprediction_local
17
22
18
-
To enable the local predictor::
19
23
20
-
ceph config set global device_failure_prediction_mode local
24
+
Run the following command to enable the local predictor:
21
25
22
-
To disable prediction::
26
+
.. prompt:: bash #
23
27
24
-
ceph config set global device_failure_prediction_mode none
28
+
ceph config set global device_failure_prediction_mode local
25
29
30
+
Run the following command to disable prediction:
26
31
27
-
*diskprediction_local* requires at least six datasets of device health metrics to
28
-
make prediction of the devices' life expectancy. And these health metrics are
29
-
collected only if health monitoring is :ref:`enabled <enabling-monitoring>`.
32
+
.. prompt:: bash #
30
33
31
-
Run the following command to retrieve the life expectancy of given device.
34
+
ceph config set global device_failure_prediction_mode none
32
35
33
-
::
34
36
35
-
ceph device predict-life-expectancy <device id>
37
+
``diskprediction_local`` requires at least six datasets of device health
38
+
metrics to make prediction of the devices' life expectancy. And these health
39
+
metrics are collected only if health monitoring is :ref:`enabled
40
+
<enabling-monitoring>`.
41
+
42
+
Run the following command to retrieve the life expectancy of a given device:
43
+
44
+
.. prompt:: bash #
45
+
46
+
ceph device predict-life-expectancy <device id>
36
47
37
48
Configuration
38
49
=============
39
50
40
-
The module performs the prediction on a daily basis by default. You can adjust
41
-
this interval with::
51
+
The module performs the prediction on a daily basis by default. Adjust this
52
+
interval by running a command of the following form:
53
+
54
+
.. prompt:: bash #
42
55
43
-
ceph config set mgr mgr/diskprediction_local/predict_interval <interval-in-seconds>
56
+
ceph config set mgr mgr/diskprediction_local/predict_interval <interval-in-seconds>
44
57
45
58
Debugging
46
59
=========
47
60
48
-
If you want to debug the DiskPrediction module mapping to Ceph logging level,
61
+
To debug the DiskPrediction module mapping to Ceph logging level,
49
62
use the following command.
50
63
51
64
::
@@ -54,6 +67,6 @@ use the following command.
54
67
55
68
debug mgr = 20
56
69
57
-
With logging set to debug for the manager the module will print out logging
58
-
message with prefix *mgr[diskprediction]* for easy filtering.
70
+
With logging set to ``debug`` for the Manager, the module will print logging
71
+
messages with the prefix ``mgr[diskprediction]``. This facilitates filtering.
0 commit comments