Add active disk health checks (#17539)

Add check every 2 minutes to see if a write+read operation can complete.

If disk is unresponsive for 2 minutes or returns errFaultyDisk, take it offline.
This commit is contained in:
Klaus Post
2023-07-13 11:41:55 -07:00
committed by GitHub
parent 183428db03
commit 4f89e5bba9
5 changed files with 89 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ func newStorageAPI(endpoint Endpoint, healthCheck bool) (storage StorageAPI, err
if err != nil {
return nil, err
}
return newXLStorageDiskIDCheck(storage), nil
return newXLStorageDiskIDCheck(storage, healthCheck), nil
}
return newStorageRESTClient(endpoint, healthCheck), nil