Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for updateMetric (0.16 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. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  3. 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)
  4. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. pkg/kubelet/pod/pod_manager.go

    }
    
    func (pm *basicManager) UpdatePod(pod *v1.Pod) {
    	pm.lock.Lock()
    	defer pm.lock.Unlock()
    	pm.updatePodsInternal(pod)
    }
    
    // updateMetrics updates the metrics surfaced by the pod manager.
    // oldPod or newPod may be nil to signify creation or deletion.
    func updateMetrics(oldPod, newPod *v1.Pod) {
    	var numEC int
    	if oldPod != nil {
    		numEC -= len(oldPod.Spec.EphemeralContainers)
    	}
    	if newPod != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:00 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. pkg/scheduler/internal/cache/cache.go

    				logger.Error(err, "ExpirePod failed", "podKey", key, "pod", klog.KObj(ps.pod))
    			}
    		}
    	}
    }
    
    // updateMetrics updates cache size metric values for pods, assumed pods, and nodes
    func (cache *cacheImpl) updateMetrics() {
    	metrics.CacheSize.WithLabelValues("assumed_pods").Set(float64(len(cache.assumedPods)))
    	metrics.CacheSize.WithLabelValues("pods").Set(float64(len(cache.podStates)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 09:56:48 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  7. pilot/pkg/xds/discovery.go

    	defer ticker.Stop()
    	for {
    		select {
    		case <-ticker.C:
    			push := s.globalPushContext()
    			model.LastPushMutex.Lock()
    			if model.LastPushStatus != push {
    				model.LastPushStatus = push
    				push.UpdateMetrics()
    				out, _ := model.LastPushStatus.StatusJSON()
    				if string(out) != "{}" {
    					log.Infof("Push Status: %s", string(out))
    				}
    			}
    			model.LastPushMutex.Unlock()
    		case <-stopCh:
    			return
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 20:21:09 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. pilot/pkg/model/push_context.go

    func (ps *PushContext) OnConfigChange() {
    	LastPushMutex.Lock()
    	LastPushStatus = ps
    	LastPushMutex.Unlock()
    	ps.UpdateMetrics()
    }
    
    // UpdateMetrics will update the prometheus metrics based on the
    // current status of the push.
    func (ps *PushContext) UpdateMetrics() {
    	ps.proxyStatusMutex.RLock()
    	defer ps.proxyStatusMutex.RUnlock()
    
    	for _, pm := range metrics {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
Back to top