Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for BucketsUsage (0.06 sec)

  1. cmd/bucket-quota.go

    		}
    	}
    
    	if len(dui.BucketsUsage) > 0 {
    		bui, ok := dui.BucketsUsage[bucket]
    		if ok {
    			return bui
    		}
    	}
    	return BucketUsageInfo{}
    }
    
    // parseBucketQuota parses BucketQuota from json
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 00:34:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. cmd/data-usage.go

    		return DataUsageInfo{}, err
    	}
    	// For forward compatibility reasons, we need to add this code.
    	if len(dataUsageInfo.BucketsUsage) == 0 {
    		dataUsageInfo.BucketsUsage = make(map[string]BucketUsageInfo, len(dataUsageInfo.BucketSizes))
    		for bucket, size := range dataUsageInfo.BucketSizes {
    			dataUsageInfo.BucketsUsage[bucket] = BucketUsageInfo{Size: size}
    		}
    	}
    
    	// For backward compatibility reasons, we need to add this code.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. cmd/metrics-v3-cluster-usage.go

    		clusterVersionsCount      uint64
    		clusterDeleteMarkersCount uint64
    	)
    
    	clusterObjectSizesHistogram := map[string]uint64{}
    	clusterVersionsHistogram := map[string]uint64{}
    	for _, usage := range dataUsageInfo.BucketsUsage {
    		clusterBuckets++
    		clusterSize += usage.Size
    		clusterObjectsCount += usage.ObjectsCount
    		clusterVersionsCount += usage.VersionsCount
    		clusterDeleteMarkersCount += usage.DeleteMarkersCount
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jul 14 18:11:42 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. cmd/bucket-replication-stats.go

    	return &rs
    }
    
    func (r *ReplicationStats) getAllLatest(bucketsUsage map[string]BucketUsageInfo) (bucketsReplicationStats map[string]BucketStats) {
    	if r == nil {
    		return nil
    	}
    	peerBucketStatsList := globalNotificationSys.GetClusterAllBucketStats(GlobalContext)
    	bucketsReplicationStats = make(map[string]BucketStats, len(bucketsUsage))
    
    	for bucket := range bucketsUsage {
    		bucketStats := make([]BucketStats, len(peerBucketStatsList))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. cmd/data-usage-utils.go

    	// Buckets usage info provides following information across all buckets
    	// - total size of the bucket
    	// - total objects in a bucket
    	// - object size histogram per bucket
    	BucketsUsage map[string]BucketUsageInfo `json:"bucketsUsageInfo"`
    	// Deprecated kept here for backward compatibility reasons.
    	BucketSizes map[string]uint64 `json:"bucketsSizes"`
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 09:15:15 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. cmd/metrics-v3-bucket-replication.go

    		return nil
    	}
    
    	dataUsageInfo, err := c.dataUsageInfo.Get()
    	if err != nil {
    		metricsLogIf(ctx, err)
    		return nil
    	}
    
    	bucketReplStats := globalReplicationStats.Load().getAllLatest(dataUsageInfo.BucketsUsage)
    	for _, bucket := range buckets {
    		labels := []string{bucketL, bucket}
    		if s, ok := bucketReplStats[bucket]; ok {
    			stats := s.ReplicationStats
    			if stats.hasReplicationUsage() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. cmd/metrics.go

    	if err != nil {
    		return
    	}
    	// data usage has not captured any data yet.
    	if dataUsageInfo.LastUpdate.IsZero() {
    		return
    	}
    
    	for bucket, usageInfo := range dataUsageInfo.BucketsUsage {
    		stat := globalReplicationStats.Load().getLatestReplicationStats(bucket)
    		// Total space used by bucket
    		ch <- prometheus.MustNewConstMetric(
    			prometheus.NewDesc(
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. cmd/metrics-v2.go

    		})
    
    		var bucketReplStats map[string]BucketStats
    		if !globalSiteReplicationSys.isEnabled() {
    			bucketReplStats = globalReplicationStats.Load().getAllLatest(dataUsageInfo.BucketsUsage)
    		}
    		for bucket, usage := range dataUsageInfo.BucketsUsage {
    			quota, _ := globalBucketQuotaSys.Get(ctx, bucket)
    
    			metrics = append(metrics, MetricV2{
    				Description:    getBucketUsageTotalBytesMD(),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    		VersionsTotalCount:      flat.Versions,
    		DeleteMarkersTotalCount: flat.DeleteMarkers,
    		ObjectsTotalSize:        uint64(flat.Size),
    		BucketsCount:            uint64(len(e.Children)),
    		BucketsUsage:            d.bucketsUsageInfo(buckets),
    		TierStats:               d.tiersUsageInfo(buckets),
    	}
    	return dui
    }
    
    // replace will add or replace an entry in the cache.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
Back to top