Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getExpMovingAvgBytesPerSecond (0.28 sec)

  1. internal/bucket/bandwidth/measurement.go

    func exponentialMovingAverage(beta, previousAvg, incrementAvg float64) float64 {
    	return (1-beta)*incrementAvg + beta*previousAvg
    }
    
    // getExpMovingAvgBytesPerSecond returns the exponential moving average for the bucket in bytes
    func (m *bucketMeasurement) getExpMovingAvgBytesPerSecond() float64 {
    	m.lock.Lock()
    	defer m.lock.Unlock()
    	return m.expMovingAvg
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Jun 03 20:41:51 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  2. cmd/bucket-replication-metrics.go

    func exponentialMovingAverage(beta, previousAvg, incrementAvg float64) float64 {
    	return (1-beta)*incrementAvg + beta*previousAvg
    }
    
    // getExpMovingAvgBytesPerSecond returns the exponential moving average for the bucket/target in bytes
    func (m *rateMeasurement) getExpMovingAvgBytesPerSecond() float64 {
    	m.lock.Lock()
    	defer m.lock.Unlock()
    	return m.expMovingAvg
    }
    
    // ActiveWorkerStat is stat for active replication workers
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  3. internal/bucket/bandwidth/monitor.go

    		if !selectBucket(bucketOpts.Name) {
    			continue
    		}
    		m.tlock.RLock()
    		if tgtThrottle, ok := m.bucketsThrottle[bucketOpts]; ok {
    			currBw := bucketMeasurement.getExpMovingAvgBytesPerSecond()
    			report.BucketStats[bucketOpts] = Details{
    				LimitInBytesPerSecond:            tgtThrottle.NodeBandwidthPerSec * int64(m.NodeCount),
    				CurrentBandwidthInBytesPerSecond: currBw,
    			}
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 6K bytes
    - Viewed (0)
Back to top