mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user