Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for updateMetric (0.29 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 8.9K bytes
    - Viewed (1)
  2. pkg/controller/endpointslicemirroring/metrics/cache.go

    			mUpdate.actual += eInfo.Slices
    			mUpdate.desired += numDesiredSlices(eInfo.Endpoints, int(c.maxEndpointsPerSlice))
    		}
    	}
    	return mUpdate
    }
    
    // updateMetrics updates metrics with the values from this Cache.
    // Must be called holding lock.
    func (c *Cache) updateMetrics() {
    	mUpdate := c.desiredAndActualSlices()
    	NumEndpointSlices.WithLabelValues().Set(float64(mUpdate.actual))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top