Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for workEstimator (0.15 sec)

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

    	// characterized by the given digest.  The given `noteFn` will be
    	// invoked with the results of request classification.
    	// The given `workEstimator` is called, if at all, after noteFn.
    	// `workEstimator` will be invoked only when the request
    	//  is classified as non 'exempt'.
    	// 'workEstimator', when invoked, must return the
    	// work parameters for the request.
    	// If the request is queued then `queueNoteFn` will be called twice,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go

    		if classification == nil {
    			// workEstimator is being invoked before classification of
    			// the request has completed, we should never be here though.
    			klog.ErrorS(fmt.Errorf("workEstimator is being invoked before classification of the request has completed"),
    				"Using empty FlowSchema and PriorityLevelConfiguration name", "verb", r.Method, "URI", r.RequestURI)
    			return h.workEstimator(r, "", "")
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/width.go

    func NewWorkEstimator(objectCountFn objectCountGetterFunc, watchCountFn watchCountGetterFunc, config *WorkEstimatorConfig, maxSeatsFn maxSeatsFunc) WorkEstimatorFunc {
    	estimator := &workEstimator{
    		minimumSeats:          config.MinimumSeats,
    		maximumSeatsLimit:     config.MaximumSeatsLimit,
    		listWorkEstimator:     newListWorkEstimator(objectCountFn, config, maxSeatsFn),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 19:26:52 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    	workEstimator func() fcrequest.WorkEstimate,
    	_ fq.QueueNoteFn, _ func(),
    ) {
    	f.requestDigestGot = &requestDigest
    	noteFn(bootstrap.MandatoryFlowSchemaCatchAll, bootstrap.MandatoryPriorityLevelConfigurationCatchAll, "")
    	f.workEstimateGot = workEstimator()
    }
    
    func TestApfWithRequestDigest(t *testing.T) {
    	epmetrics.Register()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go

    func (cfgCtlr *configController) startRequest(ctx context.Context, rd RequestDigest,
    	noteFn func(fs *flowcontrol.FlowSchema, pl *flowcontrol.PriorityLevelConfiguration, flowDistinguisher string),
    	workEstimator func() fcrequest.WorkEstimate,
    	queueNoteFn fq.QueueNoteFn) (fs *flowcontrol.FlowSchema, pl *flowcontrol.PriorityLevelConfiguration, isExempt bool, req fq.Request, startWaitingTime time.Time) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 48.8K bytes
    - Viewed (0)
Back to top