Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newQueueCache (0.2 sec)

  1. cmd/bucket-replication-stats.go

    func NewReplicationStats(ctx context.Context, objectAPI ObjectLayer) *ReplicationStats {
    	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),
    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)
  2. cmd/bucket-replication-metrics.go

    		Max:  qm.Max.add(o.Max),
    	}
    }
    
    type queueCache struct {
    	srQueueStats InQueueStats
    	bucketStats  map[string]InQueueStats
    	sync.RWMutex // mutex for queue stats
    }
    
    func newQueueCache(r metrics.Registry) queueCache {
    	return queueCache{
    		bucketStats:  make(map[string]InQueueStats),
    		srQueueStats: newInQueueStats(r, "site"),
    	}
    }
    
    func (q *queueCache) update() {
    	q.Lock()
    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