Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for bucketStats (0.07 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. internal/bucket/bandwidth/monitor_test.go

    			got = m.GetReport(SelectBuckets())
    			if !reflect.DeepEqual(got.BucketStats, tt.want2.BucketStats) {
    				t.Errorf("GetReport() = %v, want %v", got.BucketStats, tt.want2.BucketStats)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 06 03:21:59 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. 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)
  4. internal/bucket/bandwidth/monitor.go

    	CurrentBandwidthInBytesPerSecond float64 `json:"currentBandwidth"`
    }
    
    // BucketBandwidthReport captures the details for all buckets.
    type BucketBandwidthReport struct {
    	BucketStats map[BucketOptions]Details `json:"bucketStats,omitempty"`
    }
    
    // GetReport gets the report for all bucket bandwidth details.
    func (m *Monitor) GetReport(selectBucket SelectionFunction) *BucketBandwidthReport {
    	m.mlock.RLock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. cmd/bucket-stats_gen.go

    				return
    			}
    			if z.Stats == nil {
    				z.Stats = make(map[string]BucketStats, zb0002)
    			} else if len(z.Stats) > 0 {
    				for key := range z.Stats {
    					delete(z.Stats, key)
    				}
    			}
    			for zb0002 > 0 {
    				zb0002--
    				var za0001 string
    				var za0002 BucketStats
    				za0001, err = dc.ReadString()
    				if err != nil {
    					err = msgp.WrapError(err, "Stats")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  9. cmd/bucket-stats_gen_test.go

    	}
    }
    
    func BenchmarkMarshalMsgBucketStats(b *testing.B) {
    	v := BucketStats{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgBucketStats(b *testing.B) {
    	v := BucketStats{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 30 08:00:59 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  10. 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)
Back to top