Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ObserveQueueLength (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/metrics.go

    func AddDispatch(ctx context.Context, priorityLevel, flowSchema string) {
    	apiserverDispatchedRequestsTotal.WithContext(ctx).WithLabelValues(priorityLevel, flowSchema).Add(1)
    }
    
    // ObserveQueueLength observes the queue length for flow control
    func ObserveQueueLength(ctx context.Context, priorityLevel, flowSchema string, length int) {
    	apiserverRequestQueueLength.WithContext(ctx).WithLabelValues(priorityLevel, flowSchema).Observe(float64(length))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 19:40:05 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go

    		descr2:            descr2,
    		queueNoteFn:       queueNoteFn,
    		workEstimate:      qs.completeWorkEstimate(workEstimate),
    	}
    	if ok := qs.rejectOrEnqueueToBoundLocked(req); !ok {
    		return nil
    	}
    	metrics.ObserveQueueLength(ctx, qs.qCfg.Name, fsName, queue.requestsWaiting.Length())
    	return req
    }
    
    // shuffleShardLocked uses shuffle sharding to select a queue index
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 16:59:21 UTC 2024
    - 42.4K bytes
    - Viewed (0)
Back to top