Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,027 for limiter (0.25 sec)

  1. pkg/kubelet/images/helpers.go

    	kubecontainer.ImageService
    	limiter flowcontrol.RateLimiter
    }
    
    func (ts throttledImageService) PullImage(ctx context.Context, image kubecontainer.ImageSpec, secrets []v1.Secret, podSandboxConfig *runtimeapi.PodSandboxConfig) (string, error) {
    	if ts.limiter.TryAccept() {
    		return ts.ImageService.PullImage(ctx, image, secrets, podSandboxConfig)
    	}
    	return "", fmt.Errorf("pull QPS exceeded")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. pkg/controlplane/controller/legacytokentracking/controller.go

    	// rate limiter controls the rate limit of the creation of the configmap.
    	// this is useful in multi-apiserver cluster to prevent config existing in a
    	// cluster with mixed enabled/disabled controllers. otherwise, those
    	// apiservers will fight to create/delete until all apiservers are enabled
    	// or disabled.
    	creationRatelimiter *rate.Limiter
    	clock               clock.Clock
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. src/runtime/timestub.go

    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - gitee.com/quant1x/gox
    //   - github.com/phuslu/log
    //   - github.com/sethvargo/go-limiter
    //   - github.com/ulule/limiter/v3
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname time_now time.now
    func time_now() (sec int64, nsec int32, mono int64) {
    	sec, nsec = walltime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 889 bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

    /**
     * A TimeLimiter implementation which actually does not attempt to limit time at all. This may be
     * desirable to use in some unit tests. More importantly, attempting to debug a call which is
     * time-limited would be extremely annoying, so this gives you a time-limiter you can easily swap in
     * for your real time-limiter while you're debugging.
     *
     * @author Kevin Bourrillion
     * @author Jens Nyman
     * @since 1.0
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

    /**
     * A TimeLimiter implementation which actually does not attempt to limit time at all. This may be
     * desirable to use in some unit tests. More importantly, attempting to debug a call which is
     * time-limited would be extremely annoying, so this gives you a time-limiter you can easily swap in
     * for your real time-limiter while you're debugging.
     *
     * @author Kevin Bourrillion
     * @author Jens Nyman
     * @since 1.0
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. pkg/util/async/bounded_frequency_runner.go

    	mu      sync.Mutex  // guards runs of fn and all mutations
    	fn      func()      // function to run
    	lastRun time.Time   // time of last run
    	timer   timer       // timer for deferred runs
    	limiter rateLimiter // rate limiter for on-demand runs
    
    	retry     chan struct{} // schedule a retry
    	retryMu   sync.Mutex    // guards retryTime
    	retryTime time.Time     // when to retry
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 15 09:36:26 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/clientset.go

    		return nil
    	}
    	return c.DiscoveryClient
    }
    
    // NewForConfig creates a new Clientset for the given config.
    // If config's RateLimiter is not set and QPS and Burst are acceptable,
    // NewForConfig will generate a rate-limiter in configShallowCopy.
    // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
    // where httpClient was generated with rest.HTTPClientFor(c).
    func NewForConfig(c *rest.Config) (*Clientset, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 21:36:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/clientset.go

    		return nil
    	}
    	return c.DiscoveryClient
    }
    
    // NewForConfig creates a new Clientset for the given config.
    // If config's RateLimiter is not set and QPS and Burst are acceptable,
    // NewForConfig will generate a rate-limiter in configShallowCopy.
    // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
    // where httpClient was generated with rest.HTTPClientFor(c).
    func NewForConfig(c *rest.Config) (*Clientset, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 18:26:20 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  9. internal/bucket/bandwidth/monitor.go

    	m.tlock.RLock()
    	defer m.tlock.RUnlock()
    	return m.bucketsThrottle[opts]
    }
    
    // SetBandwidthLimit sets the bandwidth limit for a bucket
    func (m *Monitor) SetBandwidthLimit(bucket, arn string, limit int64) {
    	m.tlock.Lock()
    	defer m.tlock.Unlock()
    	limitBytes := limit / int64(m.NodeCount)
    	throttle, ok := m.bucketsThrottle[BucketOptions{Name: bucket, ReplicationARN: arn}]
    	if !ok {
    		throttle = &bucketThrottle{}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * target} object, enforcing the specified time limit on each call. This time-limited delegation
       * is also performed for calls to {@link Object#equals}, {@link Object#hashCode}, and {@link
       * Object#toString}.
       *
       * <p>If the target method call finishes before the limit is reached, the return value or
       * exception is propagated to the caller exactly as-is. If, on the other hand, the time limit is
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top