- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,614 for limiter (0.22 sec)
-
src/runtime/mgclimit_test.go
// Specifically, the limiter should still be on, and no overflow should accumulate. l.AddAssistTime(assistTime(1*time.Second, 0.5-GCBackgroundUtilization)) l.Update(advance(1 * time.Second)) if l.Fill() != l.Capacity() { t.Errorf("expected bucket filled to capacity %d, got %d", l.Capacity(), l.Fill()) } if !l.Limiting() { t.Errorf("limiter is not enabled after filling bucket but should be") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 13 16:02:20 UTC 2022 - 9K bytes - Viewed (0) -
plugin/pkg/admission/eventratelimit/cache.go
"k8s.io/utils/lru" ) // cache is an interface for caching the limits of a particular type type cache interface { // get the rate limiter associated with the specified key get(key interface{}) flowcontrol.RateLimiter } // singleCache is a cache that only stores a single, constant item type singleCache struct { // the single rate limiter held by the cache rateLimiter flowcontrol.RateLimiter }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 08 02:31:37 UTC 2021 - 1.6K bytes - Viewed (0) -
pkg/controller/podautoscaler/rate_limiters.go
return 1 } // Forget indicates that an item is finished being retried. func (r *FixedItemIntervalRateLimiter) Forget(item string) { } // NewDefaultHPARateLimiter creates a rate limiter which limits overall (as per the // default controller rate limiter), as well as per the resync interval func NewDefaultHPARateLimiter(interval time.Duration) workqueue.TypedRateLimiter[string] { return NewFixedItemIntervalRateLimiter(interval)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 1.8K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
src/go/doc/testdata/examples/import_groups_named.golden
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 16:17:51 UTC 2022 - 314 bytes - Viewed (0) -
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)