Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for updateMetric (5.7 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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