Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for StorageInfo (0.29 sec)

  1. cmd/metrics-v3-cache.go

    		objLayer := newObjectLayerFn()
    		if objLayer == nil {
    			return storageMetrics{}, nil
    		}
    		storageInfo := objLayer.StorageInfo(GlobalContext, true)
    		onlineDrives, offlineDrives := getOnlineOfflineDisksStats(storageInfo.Disks)
    		totalDrives := onlineDrives.Merge(offlineDrives)
    		v = storageMetrics{
    			storageInfo:   storageInfo,
    			onlineDrives:  onlineDrives.Sum(),
    			offlineDrives: offlineDrives.Sum(),
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Apr 17 05:10:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  2. cmd/metrics-v3-cluster-health.go

    ) error {
    	clusterDriveMetrics, _ := c.clusterDriveMetrics.Get()
    
    	storageInfo := clusterDriveMetrics.storageInfo
    
    	m.Set(healthCapacityRawTotalBytes, float64(GetTotalCapacity(storageInfo.Disks)))
    	m.Set(healthCapacityRawFreeBytes, float64(GetTotalCapacityFree(storageInfo.Disks)))
    	m.Set(healthCapacityUsableTotalBytes, float64(GetTotalUsableCapacity(storageInfo.Disks, storageInfo)))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/server-startup-msg.go

    	}
    }
    
    // Get formatted disk/storage info message.
    func getStorageInfoMsg(storageInfo StorageInfo) string {
    	var msg string
    	var mcMessage string
    	onlineDisks, offlineDisks := getOnlineOfflineDisksStats(storageInfo.Disks)
    	if storageInfo.Backend.Type == madmin.Erasure {
    		if offlineDisks.Sum() > 0 {
    			mcMessage = "Use `mc admin info` to look for latest server/drive info\n"
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. cmd/erasure.go

    func getStorageInfo(disks []StorageAPI, endpoints []Endpoint, metrics bool) StorageInfo {
    	disksInfo := getDisksInfo(disks, endpoints, metrics)
    
    	// Sort so that the first element is the smallest.
    	sort.Slice(disksInfo, func(i, j int) bool {
    		return disksInfo[i].TotalSpace < disksInfo[j].TotalSpace
    	})
    
    	storageInfo := StorageInfo{
    		Disks: disksInfo,
    	}
    
    	storageInfo.Backend.Type = madmin.Erasure
    	return storageInfo
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 10:02:39 GMT 2024
    - 16K bytes
    - Viewed (1)
  5. cmd/erasure-sets.go

    // coding objects
    func (s *erasureSets) ParityCount() int {
    	return s.defaultParityCount
    }
    
    // StorageInfo - combines output of StorageInfo across all erasure coded object sets.
    func (s *erasureSets) StorageInfo(ctx context.Context) StorageInfo {
    	var storageInfo madmin.StorageInfo
    
    	storageInfos := make([]madmin.StorageInfo, len(s.sets))
    
    	g := errgroup.WithNErrs(len(s.sets))
    	for index := range s.sets {
    		index := index
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 37.5K bytes
    - Viewed (5)
  6. cmd/notification-summary.go

    	for _, disk := range diskInfo {
    		capacity += disk.TotalSpace
    	}
    	return
    }
    
    // GetTotalUsableCapacity gets the total usable capacity in the cluster.
    func GetTotalUsableCapacity(diskInfo []madmin.Disk, s StorageInfo) (capacity uint64) {
    	for _, disk := range diskInfo {
    		// Ignore invalid.
    		if disk.PoolIndex < 0 || len(s.Backend.StandardSCData) <= disk.PoolIndex {
    			// https://github.com/minio/minio/issues/16500
    			continue
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  7. cmd/admin-server-info.go

    			continue
    		}
    		props.MinioEnvVars[key] = value
    	}
    
    	objLayer := newObjectLayerFn()
    	if objLayer != nil {
    		storageInfo := objLayer.LocalStorageInfo(GlobalContext, metrics)
    		props.State = string(madmin.ItemOnline)
    		props.Disks = storageInfo.Disks
    	} else {
    		props.State = string(madmin.ItemInitializing)
    		props.Disks = getOfflineDisks("", globalEndpoints)
    	}
    
    	return props
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  8. cmd/notification.go

    					DiskIndex: ep.DiskIdx,
    				})
    			}
    		}
    	}
    	return offlineDisks
    }
    
    // StorageInfo returns disk information across all peers
    func (sys *NotificationSys) StorageInfo(objLayer ObjectLayer, metrics bool) StorageInfo {
    	var storageInfo StorageInfo
    	replies := make([]StorageInfo, len(sys.peerClients))
    
    	var wg sync.WaitGroup
    	for i, client := range sys.peerClients {
    		if client == nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  9. cmd/metrics-realtime.go

    	objLayer := newObjectLayerFn()
    	if objLayer == nil {
    		return nil
    	}
    
    	metrics := make(map[string]madmin.DiskMetric)
    	storageInfo := objLayer.LocalStorageInfo(GlobalContext, true)
    	for _, d := range storageInfo.Disks {
    		if len(disks) != 0 {
    			_, ok := disks[d.Endpoint]
    			if !ok {
    				continue
    			}
    		}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Apr 10 16:28:08 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    	})
    }
    
    func validateObjPerfOptions(ctx context.Context, storageInfo madmin.StorageInfo, concurrent int, size int, autotune bool) (bool, bool, string) {
    	capacityNeeded := uint64(concurrent * size)
    	capacity := GetTotalUsableCapacityFree(storageInfo.Disks, storageInfo)
    
    	if capacity < capacityNeeded {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
Back to top