mirror of
https://github.com/minio/minio.git
synced 2026-02-12 22:00:16 -05:00
Imporve healing and reporting (#11312)
* Provide information on *actively* healing, buckets healed/queued, objects healed/failed. * Add concurrent healing of multiple sets (typically on startup). * Add bucket level resume, so restarts will only heal non-healed buckets. * Print summary after healing a disk is done.
This commit is contained in:
@@ -32,36 +32,18 @@ type BackendType int
|
||||
|
||||
// Enum for different backend types.
|
||||
const (
|
||||
Unknown BackendType = iota
|
||||
Unknown = BackendType(madmin.Unknown)
|
||||
// Filesystem backend.
|
||||
BackendFS
|
||||
BackendFS = BackendType(madmin.FS)
|
||||
// Multi disk BackendErasure (single, distributed) backend.
|
||||
BackendErasure
|
||||
BackendErasure = BackendType(madmin.Erasure)
|
||||
// Gateway backend.
|
||||
BackendGateway
|
||||
BackendGateway = BackendType(madmin.Gateway)
|
||||
// Add your own backend.
|
||||
)
|
||||
|
||||
// BackendInfo - contains info of the underlying backend
|
||||
type BackendInfo struct {
|
||||
// Represents various backend types, currently on FS, Erasure and Gateway
|
||||
Type BackendType
|
||||
|
||||
// Following fields are only meaningful if BackendType is Gateway.
|
||||
GatewayOnline bool
|
||||
|
||||
// Following fields are only meaningful if BackendType is Erasure.
|
||||
StandardSCData []int // Data disks for currently configured Standard storage class.
|
||||
StandardSCParity int // Parity disks for currently configured Standard storage class.
|
||||
RRSCData []int // Data disks for currently configured Reduced Redundancy storage class.
|
||||
RRSCParity int // Parity disks for currently configured Reduced Redundancy storage class.
|
||||
}
|
||||
|
||||
// StorageInfo - represents total capacity of underlying storage.
|
||||
type StorageInfo struct {
|
||||
Disks []madmin.Disk
|
||||
Backend BackendInfo
|
||||
}
|
||||
type StorageInfo = madmin.StorageInfo
|
||||
|
||||
// objectHistogramInterval is an interval that will be
|
||||
// used to report the histogram of objects data sizes
|
||||
|
||||
Reference in New Issue
Block a user