Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for updateMetric (0.05 sec)

  1. cmd/site-replication-utils.go

    		return ResyncCompleted
    	}
    	if cmpCount+failCount == totBuckets {
    		return ResyncFailed
    	}
    	return ResyncStarted
    }
    
    // update resync metrics per object
    func (sm *siteResyncMetrics) updateMetric(r TargetReplicationResyncStatus, resyncID string) {
    	if !globalSiteReplicationSys.isEnabled() {
    		return
    	}
    	sm.Lock()
    	defer sm.Unlock()
    	s := sm.resyncStatus[resyncID]
    	if r.ReplicatedCount > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. cmd/bucket-replication.go

    	resultCh := make(chan TargetReplicationResyncStatus, 1)
    	defer xioutil.SafeClose(resultCh)
    	go func() {
    		for r := range resultCh {
    			s.incStats(r, opts)
    			globalSiteResyncMetrics.updateMetric(r, opts.resyncID)
    		}
    	}()
    
    	var wg sync.WaitGroup
    	for i := 0; i < resyncParallelRoutines; i++ {
    		wg.Add(1)
    		workers[i] = make(chan ReplicateObjectInfo, 100)
    		i := i
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  3. internal/kms/kms.go

    	dek, err := k.conn.GenerateKey(ctx, req)
    	k.updateMetrics(err, time.Since(start))
    
    	return dek, err
    }
    
    // Decrypt decrypts a ciphertext using the master key req.Name.
    // It returns ErrKeyNotFound if the key does not exist.
    func (k *KMS) Decrypt(ctx context.Context, req *DecryptRequest) ([]byte, error) {
    	start := time.Now()
    	plaintext, err := k.conn.Decrypt(ctx, req)
    	k.updateMetrics(err, time.Since(start))
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top