Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 286 for irate (0.04 sec)

  1. 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)
  2. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * underlying model is a continuous function mapping storedPermits (from 0.0 to maxStoredPermits)
       * onto the 1/rate (i.e. intervals) that is effective at the given storedPermits. "storedPermits"
       * essentially measure unused time; we spend unused time buying/storing permits. Rate is
       * "permits / time", thus "1 / rate = time / permits". Thus, "1/rate" (time / permits) times
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

       * we change the rate.
       */
      public void testWeNeverGetABurstMoreThanOneSec() {
        RateLimiter limiter = RateLimiter.create(1.0, stopwatch);
        int[] rates = {1000, 1, 10, 1000000, 10, 1};
        for (int rate : rates) {
          int oneSecWorthOfWork = rate;
          stopwatch.sleepMillis(rate * 1000);
          limiter.setRate(rate);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

       * we change the rate.
       */
      public void testWeNeverGetABurstMoreThanOneSec() {
        RateLimiter limiter = RateLimiter.create(1.0, stopwatch);
        int[] rates = {1000, 1, 10, 1000000, 10, 1};
        for (int rate : rates) {
          int oneSecWorthOfWork = rate;
          stopwatch.sleepMillis(rate * 1000);
          limiter.setRate(rate);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  5. src/math/rand/rand_test.go

    func generateExponentialSamples(nsamples int, rate float64, seed int64) []float64 {
    	r := New(NewSource(seed))
    	samples := make([]float64, nsamples)
    	for i := range samples {
    		samples[i] = r.ExpFloat64() / rate
    	}
    	return samples
    }
    
    func testExponentialDistribution(t *testing.T, nsamples int, rate float64, seed int64) {
    	//fmt.Printf("testing nsamples=%v rate=%v seed=%v\n", nsamples, rate, seed);
    
    	mean := 1 / rate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. manifests/addons/dashboards/lib/output.json

                {
                   "datasource": {
                      "type": "prometheus",
                      "uid": "$datasource"
                   },
                   "expr": "sum by (cluster, namespace, job) (\n    rate(\n        process_cpu_seconds_total{\n            cluster=~\"$cluster\",\n            namespace=~\"$namespace\",\n            job=~\"$job\"\n        }\n    [$__rate_interval])\n)\n",
                   "intervalFactor": 2,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 18:05:06 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  7. plugin/pkg/admission/eventratelimit/cache.go

    )
    
    // 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)
  8. src/go/doc/testdata/examples/import_groups_named.go

    // license that can be found in the LICENSE file.
    
    package foo_test
    
    import (
    	"fmt"
    	tm "time"
    
    	r "golang.org/x/time/rate"
    )
    
    func Example() {
    	fmt.Println("Hello, world!")
    	// Output: Hello, world!
    }
    
    func ExampleLimiter() {
    	// Uses fmt, time and rate.
    	l := r.NewLimiter(r.Every(tm.Second), 1)
    	fmt.Println(l)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 426 bytes
    - Viewed (0)
  9. cmd/metrics-v3-replication.go

    		"Average replication data transfer rate in bytes/sec")
    	replicationCurrentActiveWorkersMD = NewGaugeMD(replicationCurrentActiveWorkers,
    		"Total number of active replication workers")
    	replicationCurrentDataTransferRateMD = NewGaugeMD(replicationCurrentDataTransferRate,
    		"Current replication data transfer rate in bytes/sec")
    	replicationLastMinuteQueuedBytesMD = NewGaugeMD(replicationLastMinuteQueuedBytes,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. test/heapsampling.go

    func scaleHeapSample(count, size, rate int64) (int64, int64) {
    	if count == 0 || size == 0 {
    		return 0, 0
    	}
    
    	if rate <= 1 {
    		// if rate==1 all samples were collected so no adjustment is needed.
    		// if rate<1 treat as unknown and skip scaling.
    		return count, size
    	}
    
    	avgSize := float64(size) / float64(count)
    	scale := 1 / (1 - math.Exp(-avgSize/float64(rate)))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 27 21:36:06 UTC 2022
    - 9.7K bytes
    - Viewed (0)
Back to top