Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for addSizes (0.2 sec)

  1. cmd/data-usage-cache.go

    type allTierStats struct {
    	Tiers map[string]tierStats `msg:"ts"`
    }
    
    func newAllTierStats() *allTierStats {
    	return &allTierStats{
    		Tiers: make(map[string]tierStats),
    	}
    }
    
    func (ats *allTierStats) addSizes(tiers map[string]tierStats) {
    	for tier, st := range tiers {
    		ats.Tiers[tier] = ats.Tiers[tier].add(st)
    	}
    }
    
    func (ats *allTierStats) merge(other *allTierStats) {
    	for tier, st := range other.Tiers {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  2. cmd/data-scanner.go

    			// simply because getSize() function already heals the
    			// object.
    			delete(abandonedChildren, pathJoin(item.bucket, item.objectPath()))
    
    			if err != errIgnoreFileContrib {
    				into.addSizes(sz)
    				into.Objects++
    			}
    
    			wait() // wait to proceed to next entry.
    
    			return nil
    		})
    		if err != nil {
    			return err
    		}
    
    		if foundObjects && globalIsErasure {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  3. cmd/site-replication-metrics.go

    			Bytes: rt.SinceUptime.Bytes,
    		},
    		ErrCounts: errCounts,
    	}
    }
    
    func (rt *RTimedMetrics) addsize(size int64, err error) {
    	// failures seen since uptime
    	atomic.AddInt64(&rt.SinceUptime.Bytes, size)
    	atomic.AddInt64(&rt.SinceUptime.Count, 1)
    	rt.LastMinute.addsize(size)
    	rt.LastHour.addsize(size)
    	if err != nil && minio.ToErrorResponse(err).Code == "AccessDenied" {
    		if rt.ErrCounts == nil {
    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)
  4. cmd/bucket-stats.go

    		bs.ReplicatedSize > 0 ||
    		bs.ReplicaSize > 0
    }
    
    func (bs *BucketReplicationStat) updateXferRate(sz int64, duration time.Duration) {
    	if sz > minLargeObjSize {
    		bs.XferRateLrg.addSize(sz, duration)
    	} else {
    		bs.XferRateSml.addSize(sz, duration)
    	}
    }
    
    // RMetricName - name of replication metric
    type RMetricName string
    
    const (
    	// Large - objects larger than 128MiB
    	Large RMetricName = "Large"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  5. cmd/xl-storage-disk-id-check.go

    	mu        sync.Mutex
    	init      sync.Once
    	lastMinuteLatency
    }
    
    func (e *lockedLastMinuteLatency) add(value time.Duration) {
    	e.addSize(value, 0)
    }
    
    // addSize will add a duration and size.
    func (e *lockedLastMinuteLatency) addSize(value time.Duration, sz int64) {
    	// alloc on every call, so we have a clean entry to swap in.
    	t := time.Now().Unix()
    	e.init.Do(func() {
    		e.cached.Store(&AccElem{})
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. cmd/bucket-replication-stats.go

    		b.ReplicatedCount++
    		if rs.TransferDuration > 0 {
    			b.Latency.update(rs.TransferSize, rs.TransferDuration)
    			b.updateXferRate(rs.TransferSize, rs.TransferDuration)
    		}
    	case rs.Failed:
    		b.FailStats.addsize(rs.TransferSize, rs.Err)
    	case rs.Pending:
    	}
    }
    
    type replStat struct {
    	Arn       string
    	Completed bool
    	Pending   bool
    	Failed    bool
    	opType    replication.Type
    	// transfer size
    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)
  7. cmd/data-scanner-metric.go

    	startTime := time.Now()
    	return func(sz int) {
    		duration := time.Since(startTime)
    
    		atomic.AddUint64(&p.operations[s], 1)
    		if s < scannerMetricLastRealtime {
    			p.latency[s].addSize(duration, int64(sz))
    		}
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    // Use for s < scannerMetricLastRealtime
    func (p *scannerMetrics) incTime(s scannerMetric, d time.Duration) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 25 05:15:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  8. cmd/bucket-replication-metrics.go

    func calcAvg(x, y float64, n1, n2 int64) float64 {
    	if n1+n2 == 0 {
    		return 0
    	}
    	avg := (x*float64(n1) + y*float64(n2)) / float64(n1+n2)
    	return avg
    }
    
    // Add a new transfer
    func (rx *XferStats) addSize(sz int64, t time.Duration) {
    	if rx.measure == nil {
    		rx.measure = newRateMeasurement(time.Now())
    	}
    	rx.measure.incrementBytes(uint64(sz))
    	rx.Curr = rx.measure.getExpMovingAvgBytesPerSecond()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
Back to top