Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TotalSpace (0.35 sec)

  1. cmd/rebalance-admin.go

    		AvailableSpace uint64
    		TotalSpace     uint64
    	}, len(z.serverPools))
    	for _, disk := range si.Disks {
    		// Ignore invalid.
    		if disk.PoolIndex < 0 || len(diskStats) <= disk.PoolIndex {
    			// https://github.com/minio/minio/issues/16500
    			continue
    		}
    		diskStats[disk.PoolIndex].AvailableSpace += disk.AvailableSpace
    		diskStats[disk.PoolIndex].TotalSpace += disk.TotalSpace
    	}
    
    	stopTime := meta.StoppedAt
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. cmd/notification-summary.go

    import (
    	"github.com/minio/madmin-go/v3"
    )
    
    // GetTotalCapacity gets the total capacity in the cluster.
    func GetTotalCapacity(diskInfo []madmin.Disk) (capacity uint64) {
    	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 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. cmd/erasure.go

    	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
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-rebalance.go

    	diskStats := make([]struct {
    		AvailableSpace uint64
    		TotalSpace     uint64
    	}, len(z.serverPools))
    	var totalCap, totalFree uint64
    	for _, disk := range si.Disks {
    		// Ignore invalid.
    		if disk.PoolIndex < 0 || len(diskStats) <= disk.PoolIndex {
    			// https://github.com/minio/minio/issues/16500
    			continue
    		}
    		totalCap += disk.TotalSpace
    		totalFree += disk.AvailableSpace
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Sep 04 20:47:24 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  5. cmd/metrics-v3-system-drive.go

    	m.Set(driveUsedBytes, float64(drive.UsedSpace), labels...)
    	m.Set(driveFreeBytes, float64(drive.AvailableSpace), labels...)
    	m.Set(driveTotalBytes, float64(drive.TotalSpace), labels...)
    	m.Set(driveUsedInodes, float64(drive.UsedInodes), labels...)
    	m.Set(driveFreeInodes, float64(drive.FreeInodes), labels...)
    	m.Set(driveTotalInodes, float64(drive.UsedInodes+drive.FreeInodes), labels...)
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. cmd/metrics.go

    			prometheus.NewDesc(
    				prometheus.BuildFQName(diskNamespace, "storage", "total"),
    				"Total space on the drive",
    				[]string{"disk"}, nil),
    			prometheus.GaugeValue,
    			float64(disk.TotalSpace),
    			disk.DrivePath,
    		)
    	}
    }
    
    func metricsHandler() http.Handler {
    	registry := prometheus.NewRegistry()
    
    	logger.CriticalIf(GlobalContext, registry.Register(minioVersionInfo))
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    				erasureSet.DeleteMarkersCount = dataUsageInfo.DeleteMarkersTotalCount
    				erasureSet.Usage = dataUsageInfo.ObjectsTotalSize
    			}
    		}
    		erasureSet.RawCapacity += d.TotalSpace
    		erasureSet.RawUsage += d.UsedSpace
    		if d.Healing {
    			erasureSet.HealDisks = 1
    		}
    		poolInfo[d.SetIndex] = erasureSet
    		poolsInfo[d.PoolIndex] = poolInfo
    	}
    	return poolsInfo, nil
    }
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
  8. cmd/metrics-v2.go

    				VariableLabels: map[string]string{"drive": disk.DrivePath},
    			})
    
    			metrics = append(metrics, MetricV2{
    				Description:    getNodeDriveTotalBytesMD(),
    				Value:          float64(disk.TotalSpace),
    				VariableLabels: map[string]string{"drive": disk.DrivePath},
    			})
    
    			metrics = append(metrics, MetricV2{
    				Description:    getNodeDrivesFreeInodesMD(),
    				Value:          float64(disk.FreeInodes),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 133.4K bytes
    - Viewed (0)
Back to top