Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for GetTotalUsableCapacity (0.24 sec)

  1. cmd/notification-summary.go

    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 {
    		// Ignore invalid.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  2. cmd/metrics-v3-cluster-health.go

    	m.Set(healthCapacityRawTotalBytes, float64(GetTotalCapacity(storageInfo.Disks)))
    	m.Set(healthCapacityRawFreeBytes, float64(GetTotalCapacityFree(storageInfo.Disks)))
    	m.Set(healthCapacityUsableTotalBytes, float64(GetTotalUsableCapacity(storageInfo.Disks, storageInfo)))
    	m.Set(healthCapacityUsableFreeBytes, float64(GetTotalUsableCapacityFree(storageInfo.Disks, storageInfo)))
    
    	return nil
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/veeam-sos-api.go

    			} else if q.Quota > 0 {
    				quotaSize = int64(q.Quota)
    			}
    		}
    
    		if quotaSize == 0 {
    			info := objAPI.StorageInfo(ctx, true)
    			info.Backend = objAPI.BackendInfo()
    
    			ci.Capacity = int64(GetTotalUsableCapacity(info.Disks, info))
    		} else {
    			ci.Capacity = quotaSize
    		}
    		ci.Available = ci.Capacity - ci.Used
    
    		buf = encodeResponse(&ci)
    	default:
    		return nil, errFileNotFound
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 18:43:58 GMT 2024
    - 8.2K bytes
    - Viewed (2)
  4. cmd/metrics.go

    		prometheus.NewDesc(
    			prometheus.BuildFQName(minioNamespace, "capacity_usable", "total"),
    			"Total usable capacity online in the cluster",
    			nil, nil),
    		prometheus.GaugeValue,
    		float64(GetTotalUsableCapacity(server.Disks, sinfo)),
    	)
    
    	// Report total usable capacity free
    	ch <- prometheus.MustNewConstMetric(
    		prometheus.NewDesc(
    			prometheus.BuildFQName(minioNamespace, "capacity_usable_free", "total"),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool-decom.go

    	}
    	if idx+1 > len(z.serverPools) {
    		return pi, errInvalidArgument
    	}
    
    	info := z.serverPools[idx].StorageInfo(context.Background())
    	info.Backend = z.BackendInfo()
    
    	usableTotal := int64(GetTotalUsableCapacity(info.Disks, info))
    	usableFree := int64(GetTotalUsableCapacityFree(info.Disks, info))
    	return poolSpaceInfo{
    		Total: usableTotal,
    		Free:  usableFree,
    		Used:  usableTotal - usableFree,
    	}, nil
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.3K bytes
    - Viewed (1)
  6. cmd/admin-handlers.go

    		return
    	}
    
    	// Get capacity info when asked.
    	if r.Form.Get("capacity") == "true" {
    		sinfo := objectAPI.StorageInfo(ctx, false)
    		dataUsageInfo.TotalCapacity = GetTotalUsableCapacity(sinfo.Disks, sinfo)
    		dataUsageInfo.TotalFreeCapacity = GetTotalUsableCapacityFree(sinfo.Disks, sinfo)
    		if dataUsageInfo.TotalCapacity > dataUsageInfo.TotalFreeCapacity {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  7. cmd/metrics-v2.go

    			Value:       float64(GetTotalCapacityFree(storageInfo.Disks)),
    		})
    
    		metrics = append(metrics, MetricV2{
    			Description: getClusterCapacityUsageBytesMD(),
    			Value:       float64(GetTotalUsableCapacity(storageInfo.Disks, storageInfo)),
    		})
    
    		metrics = append(metrics, MetricV2{
    			Description: getClusterCapacityUsageFreeBytesMD(),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
Back to top