Hi list,

Looking into diskprediction_local module, and I see that it only
predicts a few states: good, warning and bad:

ceph/src/pybind/mgr/diskprediction_local/predictor.py:
if score > 10:
    return "Bad"
if score > 4:
    return "Warning"
return "Good"

The predicted fail date is just a derivative based on that:

ceph/src/pybind/mgr/diskprediction_local/module.py
            if result.lower() == 'good':
                life_expectancy_day_min = (TIME_WEEK * 6) + TIME_DAYS
                life_expectancy_day_max = None
            elif result.lower() == 'warning':
                life_expectancy_day_min = (TIME_WEEK * 2)
                life_expectancy_day_max = (TIME_WEEK * 6)
            elif result.lower() == 'bad':
                life_expectancy_day_min = 0
                life_expectancy_day_max = (TIME_WEEK * 2) - TIME_DAYS

Is it possible to get any finer prediction date?

-- 
Vytenis
_______________________________________________
ceph-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to