Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for bucketStats (0.12 sec)

  1. cmd/bucket-replication-stats.go

    			bucketStat, ok := peerBucketStats.Stats[bucket]
    			if !ok {
    				continue
    			}
    			bucketStats[i] = bucketStat
    		}
    		bucketsReplicationStats[bucket] = r.calculateBucketReplicationStats(bucket, bucketStats)
    	}
    	return bucketsReplicationStats
    }
    
    func (r *ReplicationStats) calculateBucketReplicationStats(bucket string, bucketStats []BucketStats) (bs BucketStats) {
    	if r == nil {
    		bs = BucketStats{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. cmd/bucket-replication-metrics.go

    	srProxyStats ProxyMetric
    	bucketStats  map[string]ProxyMetric
    	sync.RWMutex // mutex for proxy stats
    }
    
    func newProxyStatsCache() proxyStatsCache {
    	return proxyStatsCache{
    		bucketStats: make(map[string]ProxyMetric),
    	}
    }
    
    func (p *proxyStatsCache) inc(bucket string, api replProxyAPI, isErr bool) {
    	p.Lock()
    	defer p.Unlock()
    	v, ok := p.bucketStats[bucket]
    	if !ok {
    		v = ProxyMetric{}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  3. cmd/http-stats.go

    	s.RLock()
    	defer s.RUnlock()
    
    	if len(s.stats) == 0 {
    		return nil
    	}
    
    	bucketStats := make(map[string]inOutBytes, len(s.stats))
    	for k, v := range s.stats {
    		bucketStats[k] = inOutBytes{
    			In:  v.s3InputBytes,
    			Out: v.s3OutputBytes,
    		}
    	}
    	return bucketStats
    }
    
    // Return S3 total input/output bytes for each
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. cmd/bucket-stats.go

    		l.Totals[idx] = AccElem{}
    		l.LastMin++
    	}
    }
    
    // BucketStatsMap captures bucket statistics for all buckets
    type BucketStatsMap struct {
    	Stats     map[string]BucketStats
    	Timestamp time.Time
    }
    
    // BucketStats bucket statistics
    type BucketStats struct {
    	Uptime           int64                  `json:"uptime"`
    	ReplicationStats BucketReplicationStats `json:"currStats"`  // current replication stats since cluster startup
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 11:39:51 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. cmd/notification.go

    		bucketStats = append(bucketStats, BucketStats{
    			ReplicationStats: st.Get(bucketName),
    			QueueStats:       ReplicationQueueStats{Nodes: []ReplQNodeStats{st.getNodeQueueStats(bucketName)}},
    			ProxyStats:       st.getProxyStats(bucketName),
    		})
    	}
    	return bucketStats
    }
    
    // GetClusterSiteMetrics - calls GetClusterSiteMetrics call on all peers for a cluster statistics view.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  6. cmd/peer-rest-server.go

    	getBucketStatsRPC              = grid.NewSingleHandler[*grid.MSS, *BucketStats](grid.HandlerGetBucketStats, grid.NewMSS, func() *BucketStats { return &BucketStats{} })
    	getCPUsHandler                 = grid.NewSingleHandler[*grid.MSS, *grid.JSON[madmin.CPUs]](grid.HandlerGetCPUs, grid.NewMSS, madminCPUs.NewJSON)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  7. cmd/site-replication.go

    		}
    	}
    
    	for i, sri := range sris {
    		for b := range allBuckets {
    			if _, ok := bucketStats[b]; !ok {
    				bucketStats[b] = make([]srBucketMetaInfo, numSites)
    			}
    			si, ok := sri.Buckets[b]
    			if !ok {
    				si = madmin.SRBucketInfo{Bucket: b}
    			}
    			bucketStats[b][i] = srBucketMetaInfo{SRBucketInfo: si, DeploymentID: sri.DeploymentID}
    		}
    
    		for pname := range allPolicies {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  8. cmd/bucket-replication-handlers.go

    	enc := json.NewEncoder(w)
    	stats := globalReplicationStats.Load().getLatestReplicationStats(bucket)
    	bwRpt := globalNotificationSys.GetBandwidthReports(ctx, bucket)
    	bwMap := bwRpt.BucketStats
    	for arn, st := range stats.ReplicationStats.Stats {
    		for opts, bw := range bwMap {
    			if opts.ReplicationARN != "" && opts.ReplicationARN == arn {
    				st.BandWidthLimitInBytesPerSecond = bw.LimitInBytesPerSecond
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  9. cmd/peer-rest-client.go

    // GetBucketStats - load bucket statistics
    func (client *peerRESTClient) GetBucketStats(ctx context.Context, bucket string) (BucketStats, error) {
    	resp, err := getBucketStatsRPC.Call(ctx, client.gridConn(), grid.NewMSSWith(map[string]string{
    		peerRESTBucket: bucket,
    	}))
    	if err != nil || resp == nil {
    		return BucketStats{}, err
    	}
    	return *resp, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. cmd/metrics-v2.go

    		}
    
    		metrics = append(metrics, MetricV2{
    			Description: getUsageLastScanActivityMD(),
    			Value:       float64(time.Since(dataUsageInfo.LastUpdate)),
    		})
    
    		var bucketReplStats map[string]BucketStats
    		if !globalSiteReplicationSys.isEnabled() {
    			bucketReplStats = globalReplicationStats.Load().getAllLatest(dataUsageInfo.BucketsUsage)
    		}
    		for bucket, usage := range dataUsageInfo.BucketsUsage {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top