Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newSRStats (0.18 sec)

  1. cmd/site-replication-metrics.go

    func (srs *SRStatus) updateXferRate(sz int64, duration time.Duration) {
    	if sz > minLargeObjSize {
    		srs.XferRateLrg.addSize(sz, duration)
    	} else {
    		srs.XferRateSml.addSize(sz, duration)
    	}
    }
    
    func newSRStats() *SRStats {
    	s := SRStats{
    		M:               make(map[string]*SRStatus),
    		movingAvgTicker: time.NewTicker(time.Second * 2),
    	}
    	go s.trackEWMA()
    	return &s
    }
    
    func (sr *SRStats) trackEWMA() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. cmd/bucket-replication-stats.go

    	r := metrics.NewRegistry()
    	rs := ReplicationStats{
    		Cache:           make(map[string]*BucketReplicationStats),
    		qCache:          newQueueCache(r),
    		pCache:          newProxyStatsCache(),
    		srStats:         newSRStats(),
    		movingAvgTicker: time.NewTicker(2 * time.Second),
    		wTimer:          time.NewTicker(2 * time.Second),
    		qTimer:          time.NewTicker(2 * time.Second),
    
    		workers:  newActiveWorkerStat(r),
    		registry: r,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top