Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 115 for qps (0.04 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. cmd/kubemark/app/hollow_node.go

    	fs.StringVar(&c.ContentType, "kube-api-content-type", "application/vnd.kubernetes.protobuf", "ContentType of requests sent to apiserver.")
    	fs.Float32Var(&c.QPS, "kube-api-qps", 10, "QPS indicates the maximum QPS to the apiserver.")
    	fs.IntVar(&c.Burst, "kube-api-burst", 20, "Burst indicates maximum burst for throttle to the apiserver.")
    
    	bindableNodeLabels := cliflag.ConfigurationMap(c.NodeLabels)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/v1/defaults_test.go

    					ResourceLock:      "leases",
    					ResourceNamespace: "kube-system",
    					ResourceName:      "kube-scheduler",
    				},
    				ClientConnection: componentbaseconfig.ClientConnectionConfiguration{
    					QPS:         50,
    					Burst:       100,
    					ContentType: "application/vnd.kubernetes.protobuf",
    				},
    				PercentageOfNodesToScore: ptr.To[int32](config.DefaultPercentageOfNodesToScore),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  10. pkg/kubelet/apis/grpc/ratelimit.go

    	}
    }
    
    // WithRateLimiter creates new rate limiter with unary interceptor.
    func WithRateLimiter(serviceName string, qps, burstTokens int32) grpc.ServerOption {
    	qpsVal := gotimerate.Limit(qps)
    	burstVal := int(burstTokens)
    	klog.InfoS("Setting rate limiting for endpoint", "service", serviceName, "qps", qpsVal, "burstTokens", burstVal)
    	return grpc.UnaryInterceptor(LimiterUnaryServerInterceptor(gotimerate.NewLimiter(qpsVal, burstVal)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 07:22:23 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top