Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,027 for limiter (0.32 sec)

  1. src/runtime/export_test.go

    	return l
    }
    
    func (l *GCCPULimiter) Fill() uint64 {
    	return l.limiter.bucket.fill
    }
    
    func (l *GCCPULimiter) Capacity() uint64 {
    	return l.limiter.bucket.capacity
    }
    
    func (l *GCCPULimiter) Overflow() uint64 {
    	return l.limiter.overflow
    }
    
    func (l *GCCPULimiter) Limiting() bool {
    	return l.limiter.limiting()
    }
    
    func (l *GCCPULimiter) NeedUpdate(now int64) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  2. pkg/controller/nodelifecycle/scheduler/rate_limited_queue_test.go

    	fakeAlways := flowcontrol.NewFakeAlwaysRateLimiter()
    	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() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 17:40:33 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * spread over each second. When the incoming request rate exceeds {@code permitsPerSecond} the
       * rate limiter will release one permit every {@code (1.0 / permitsPerSecond)} seconds. When the
       * rate limiter is unused, bursts of up to {@code permitsPerSecond} permits will be allowed, with
       * subsequent requests being smoothly limited at the stable rate of {@code permitsPerSecond}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  4. pkg/controlplane/controller/legacytokentracking/controller_test.go

    			},
    		},
    	}
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			client := fake.NewSimpleClientset(test.clientObjects...)
    			limiter := rate.NewLimiter(rate.Every(throttlePeriod), 1)
    			controller := newController(client, testingclock.NewFakeClock(now), limiter)
    			if test.existingConfigMap != nil {
    				controller.configMapCache.Add(test.existingConfigMap)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 19 17:33:34 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/RateLimiter.java

       * spread over each second. When the incoming request rate exceeds {@code permitsPerSecond} the
       * rate limiter will release one permit every {@code (1.0 / permitsPerSecond)} seconds. When the
       * rate limiter is unused, bursts of up to {@code permitsPerSecond} permits will be allowed, with
       * subsequent requests being smoothly limited at the stable rate of {@code permitsPerSecond}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go

    	if limiter := pl.Spec.Limited; limiter != nil {
    		return limiter.NominalConcurrencyShares, limiter.LendablePercent, limiter.BorrowingLimitPercent
    	}
    	limiter := pl.Spec.Exempt
    	var nominalConcurrencyShares int32
    	if limiter.NominalConcurrencyShares != nil {
    		nominalConcurrencyShares = *limiter.NominalConcurrencyShares
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 48.8K bytes
    - Viewed (0)
  7. android/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
    - 8.3K bytes
    - Viewed (0)
  8. src/runtime/metrics/description.go

    			"allocs-by-size and frees-by-size.",
    		Kind:       KindUint64,
    		Cumulative: true,
    	},
    	{
    		Name: "/gc/limiter/last-enabled:gc-cycle",
    		Description: "GC cycle the last time the GC CPU limiter was enabled. " +
    			"This metric is useful for diagnosing the root cause of an out-of-memory " +
    			"error, because the limiter trades memory for CPU time when the GC's CPU " +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:59:12 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  9. pkg/controller/garbagecollector/garbagecollector_test.go

    	if e, a := len(t.pendingList), t.limiter.Len(); e != a {
    		panic(fmt.Errorf("pendingList != limiter.Len(): %d / %d", e, a))
    	}
    	return len(t.pendingList)
    }
    func (t *trackingWorkqueue[T]) ShutDown() {
    	t.limiter.ShutDown()
    }
    func (t *trackingWorkqueue[T]) ShutDownWithDrain() {
    	t.limiter.ShutDownWithDrain()
    }
    func (t *trackingWorkqueue[T]) ShuttingDown() bool {
    	return t.limiter.ShuttingDown()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/namespacecontroller.go

    	CACertNamespaceConfigMap = "istio-ca-root-cert"
    
    	// maxRetries is the number of times a namespace will be retried before it is dropped out of the queue.
    	// With the current rate-limiter in use (5ms*2^(maxRetries-1)) the following numbers represent the
    	// sequence of delays between successive queuing of a namespace.
    	//
    	// 5ms, 10ms, 20ms, 40ms, 80ms
    	maxRetries = 5
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top