Skip to content

Commit e7484eb

Browse files
authored
Merge pull request ceph#63422 from zdover23/wip-doc-2025-05-22-backport-63369-to-tentacle
tentacle: doc/mgr: edit diskpredictor.rst Reviewed-by: Anthony D'Atri <[email protected]>
2 parents 73d7c53 + acaaa94 commit e7484eb

File tree

1 file changed

+33
-20
lines changed

1 file changed

+33
-20
lines changed

doc/mgr/diskprediction.rst

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,61 @@
44
Diskprediction Module
55
=====================
66

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%.
812

913
Enabling
1014
========
1115

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:
1418

15-
ceph mgr module enable diskprediction_local
19+
.. prompt:: bash #
1620

21+
ceph mgr module enable diskprediction_local
1722

18-
To enable the local predictor::
1923

20-
ceph config set global device_failure_prediction_mode local
24+
Run the following command to enable the local predictor:
2125

22-
To disable prediction::
26+
.. prompt:: bash #
2327

24-
ceph config set global device_failure_prediction_mode none
28+
ceph config set global device_failure_prediction_mode local
2529

30+
Run the following command to disable prediction:
2631

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 #
3033

31-
Run the following command to retrieve the life expectancy of given device.
34+
ceph config set global device_failure_prediction_mode none
3235

33-
::
3436

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>
3647

3748
Configuration
3849
=============
3950

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 #
4255

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>
4457

4558
Debugging
4659
=========
4760

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,
4962
use the following command.
5063

5164
::
@@ -54,6 +67,6 @@ use the following command.
5467

5568
debug mgr = 20
5669

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.
5972

0 commit comments

Comments
 (0)