From 1c081dde77149f879eafec1d31b930fdce426806 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 25 Oct 2018 08:30:49 -0500 Subject: [PATCH] mgr/diskprediction: use global device_failure_prediction_mode setting Signed-off-by: Sage Weil --- doc/mgr/diskprediction.rst | 16 +++++---- src/common/options.cc | 8 +++++ src/pybind/mgr/diskprediction/module.py | 46 ++++++------------------- 3 files changed, 28 insertions(+), 42 deletions(-) diff --git a/doc/mgr/diskprediction.rst b/doc/mgr/diskprediction.rst index 7c25cfbb9e4..f0778e193cb 100644 --- a/doc/mgr/diskprediction.rst +++ b/doc/mgr/diskprediction.rst @@ -10,18 +10,22 @@ Enabling ======== Run the following command to enable the *diskprediction* module in the Ceph -environment: - -:: +environment:: ceph mgr module enable diskprediction -Select the prediction mode: +Select the prediction mode:: -:: + ceph config set global device_health_prediction_mode local + +or:: + + ceph config set global device_health_prediction_mode cloud + +To disable prediction,:: - ceph device set-prediction-mode + ceph config set global device_health_prediction_mode none Connection settings diff --git a/src/common/options.cc b/src/common/options.cc index ac855ed7561..b60b7ed8700 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4988,6 +4988,14 @@ std::vector