Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for QPS (0.11 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/test/echo/server/forwarder/util.go

    	defer cancel()
    
    	responses := make([]string, cfg.count)
    	responseTimes := make([]time.Duration, cfg.count)
    	var responsesMu sync.Mutex
    
    	var throttle *time.Ticker
    	qps := int(cfg.Request.Qps)
    	if qps > 0 {
    		sleepTime := time.Second / time.Duration(qps)
    		fwLog.Debugf("Sleeping %v between requests", sleepTime)
    		throttle = time.NewTicker(sleepTime)
    		defer throttle.Stop()
    	}
    
    	g := e.NewGroup()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. cmd/kube-scheduler/app/options/deprecated.go

    	fs.Float32Var(&o.QPS, "kube-api-qps", 50.0, "DEPRECATED: QPS to use while talking with kubernetes apiserver. This parameter is ignored if a config file is specified in --config.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 13:24:38 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. pkg/test/framework/components/cluster/kube/factory.go

    		config.QPS = 200
    		config.Burst = 400
    	})
    	if err != nil {
    		return nil, err
    	}
    	return istioKube.NewCLIClient(istioKube.NewClientConfigForRestConfig(rc))
    }
    
    func buildClientWithProxy(kubeconfig string, proxyURL *url.URL) (istioKube.CLIClient, error) {
    	rc, err := istioKube.DefaultRestConfig(kubeconfig, "", func(config *rest.Config) {
    		config.QPS = 200
    		config.Burst = 400
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. pkg/test/echo/cmd/client/main.go

    		return err
    	}
    	return nil
    }
    
    func init() {
    	rootCmd.PersistentFlags().IntVar(&count, "count", common.DefaultCount, "Number of times to make the request")
    	rootCmd.PersistentFlags().IntVar(&qps, "qps", 0, "Queries per second")
    	rootCmd.PersistentFlags().DurationVar(&timeout, "timeout", common.DefaultRequestTimeout, "Request timeout")
    	rootCmd.PersistentFlags().StringVar(&uds, "uds", "",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top