Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for QPS (0.02 sec)

  1. plugin/pkg/admission/eventratelimit/apis/eventratelimit/validation/validation_test.go

    		config: eventratelimitapi.Configuration{
    			Limits: []eventratelimitapi.Limit{{
    				Type:  "Server",
    				Burst: 5,
    				QPS:   1,
    			}, {
    				Type:      "Namespace",
    				Burst:     10,
    				QPS:       2,
    				CacheSize: 100,
    			}, {
    				Type:      "SourceAndObject",
    				Burst:     25,
    				QPS:       10,
    				CacheSize: 1000,
    			}},
    		},
    		expectedResult: true,
    	}, {
    		name:           "missing limits",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. pkg/kubelet/images/image_manager_test.go

    				{[]string{"GetImageRef", "PullImage", "GetImageSize"}, nil, true, true},
    			}},
    		// image present, non-zero qps, try to pull when qps exceeded
    		{containerImage: "present_image",
    			testName:   "image present and excessive qps rate, pull",
    			policy:     v1.PullAlways,
    			inspectErr: nil,
    			pullerErr:  nil,
    			qps:        2000.0,
    			burst:      0,
    			expected: []pullerExpects{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. plugin/pkg/admission/eventratelimit/apis/eventratelimit/types.go

    	Type LimitType `json:"type"`
    
    	// qps is the number of event queries per second that are allowed for this
    	// type of limit. The qps and burst fields are used together to determine if
    	// a particular event query is accepted. The qps determines how many queries
    	// are accepted once the burst amount of queries has been exhausted.
    	QPS int32 `json:"qps"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 17:38:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  4. cluster/gce/manifests/glbc.manifest

        - --healthz-port=8086
        - --gce-ratelimit=ga.Operations.Get,qps,10,100
        - --gce-ratelimit=alpha.Operations.Get,qps,10,100
        - --gce-ratelimit=beta.Operations.Get,qps,10,100
        - --gce-ratelimit=ga.BackendServices.Get,qps,1.8,1
        - --gce-ratelimit=beta.BackendServices.Get,qps,1.8,1
        - --gce-ratelimit=ga.HealthChecks.Get,qps,1.8,1
        - --gce-ratelimit=alpha.HealthChecks.Get,qps,1.8,1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 10:40:01 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. pkg/kubelet/images/helpers.go

    // pulling based on the given QPS and burst limits. If QPS is zero, defaults
    // to no throttling.
    func throttleImagePulling(imageService kubecontainer.ImageService, qps float32, burst int) kubecontainer.ImageService {
    	if qps == 0.0 {
    		return imageService
    	}
    	return &throttledImageService{
    		ImageService: imageService,
    		limiter:      flowcontrol.NewTokenBucketRateLimiter(qps, burst),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/clientset.go

    // If config's RateLimiter is not set and QPS and Burst are acceptable,
    // NewForConfigAndClient will generate a rate-limiter in configShallowCopy.
    func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error) {
    	configShallowCopy := *c
    	if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
    		if configShallowCopy.Burst <= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 21:36:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/clientset.go

    // If config's RateLimiter is not set and QPS and Burst are acceptable,
    // NewForConfigAndClient will generate a rate-limiter in configShallowCopy.
    func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error) {
    	configShallowCopy := *c
    	if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
    		if configShallowCopy.Burst <= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 18:26:20 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. plugin/pkg/admission/eventratelimit/apis/eventratelimit/validation/validation.go

    		}
    		if limit.Burst <= 0 {
    			allErrs = append(allErrs, field.Invalid(idxPath.Child("burst"), limit.Burst, "must be positive"))
    		}
    		if limit.QPS <= 0 {
    			allErrs = append(allErrs, field.Invalid(idxPath.Child("qps"), limit.QPS, "must be positive"))
    		}
    		if limit.Type != eventratelimitapi.ServerLimitType {
    			if limit.CacheSize < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 17:38:03 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  9. pkg/controller/nodelifecycle/scheduler/rate_limited_queue_test.go

    	qps := evictor.limiter.QPS()
    	if qps != fakeAlways.QPS() {
    		t.Fatalf("QPS does not match create one: %v instead of %v", qps, fakeAlways.QPS())
    	}
    
    	evictor.SwapLimiter(0)
    	qps = evictor.limiter.QPS()
    	fakeNever := flowcontrol.NewFakeNeverRateLimiter()
    	if qps != fakeNever.QPS() {
    		t.Fatalf("QPS does not match create one: %v instead of %v", qps, fakeNever.QPS())
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 17:40:33 UTC 2023
    - 10K bytes
    - Viewed (0)
  10. plugin/pkg/admission/eventratelimit/apis/eventratelimit/v1alpha1/types.go

    	Type LimitType `json:"type"`
    
    	// qps is the number of event queries per second that are allowed for this
    	// type of limit. The qps and burst fields are used together to determine if
    	// a particular event query is accepted. The qps determines how many queries
    	// are accepted once the burst amount of queries has been exhausted.
    	QPS int32 `json:"qps"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 17:38:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
Back to top