Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for offlineDrives (0.07 sec)

  1. cmd/metrics-v3-cache.go

    			return
    		}
    
    		storageInfo := objLayer.LocalStorageInfo(GlobalContext, true)
    		onlineDrives, offlineDrives := getOnlineOfflineDisksStats(storageInfo.Disks)
    		totalDrives := onlineDrives.Merge(offlineDrives)
    
    		v = storageMetrics{
    			storageInfo:   storageInfo,
    			onlineDrives:  onlineDrives.Sum(),
    			offlineDrives: offlineDrives.Sum(),
    			totalDrives:   totalDrives.Sum(),
    			ioStats:       map[string]driveIOStatMetrics{},
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. cmd/metrics-v3-cluster-health.go

    func loadClusterHealthDriveMetrics(ctx context.Context, m MetricValues,
    	c *metricsCache,
    ) error {
    	clusterDriveMetrics, _ := c.clusterDriveMetrics.Get()
    
    	m.Set(healthDrivesOfflineCount, float64(clusterDriveMetrics.offlineDrives))
    	m.Set(healthDrivesOnlineCount, float64(clusterDriveMetrics.onlineDrives))
    	m.Set(healthDrivesCount, float64(clusterDriveMetrics.totalDrives))
    
    	return nil
    }
    
    const (
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 09:15:15 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/metrics-v3-system-drive.go

    		if dm, found := driveMetrics.ioStats[disk.DrivePath]; found {
    			m.setDriveIOStatMetrics(dm, labels)
    		}
    		m.setDriveAPIMetrics(disk, labels)
    	}
    
    	m.Set(driveOfflineCount, float64(driveMetrics.offlineDrives))
    	m.Set(driveOnlineCount, float64(driveMetrics.onlineDrives))
    	m.Set(driveCount, float64(driveMetrics.totalDrives))
    
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 12 17:23:50 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. cmd/erasure-multipart.go

    		// If we have offline disks upgrade the number of erasure codes for this object.
    		parityOrig := parityDrives
    
    		var offlineDrives int
    		for _, disk := range onlineDisks {
    			if disk == nil || !disk.IsOnline() {
    				parityDrives++
    				offlineDrives++
    				continue
    			}
    		}
    
    		if offlineDrives >= (len(onlineDisks)+1)/2 {
    			// if offline drives are more than 50% of the drives
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  5. cmd/metrics-v2.go

    		objLayer := newObjectLayerFn()
    
    		metrics = make([]MetricV2, 0, 50)
    		storageInfo := objLayer.LocalStorageInfo(ctx, true)
    		onlineDrives, offlineDrives := getOnlineOfflineDisksStats(storageInfo.Disks)
    		totalDrives := onlineDrives.Merge(offlineDrives)
    
    		for _, disk := range storageInfo.Disks {
    			metrics = append(metrics, MetricV2{
    				Description:    getNodeDriveUsedBytesMD(),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  6. cmd/erasure-object.go

    		parityOrig := parityDrives
    
    		var offlineDrives int
    		for _, disk := range storageDisks {
    			if disk == nil || !disk.IsOnline() {
    				parityDrives++
    				offlineDrives++
    				continue
    			}
    		}
    
    		if offlineDrives >= (len(storageDisks)+1)/2 {
    			// if offline drives are more than 50% of the drives
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top