Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for jitter (0.13 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go

    	const estimatedLoopOverhead = time.Millisecond
    	// estimate how long this delay can be
    	intervalMax := func(backoff Backoff) time.Duration {
    		d := backoff.Duration
    		if backoff.Jitter > 0 {
    			d += time.Duration(backoff.Jitter * float64(d))
    		}
    		return d
    	}
    	// estimate how short this delay can be
    	intervalMin := func(backoff Backoff) time.Duration {
    		d := backoff.Duration
    		return d
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:48:08 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    	// positive jitter
    	backoff := Backoff{Duration: 1, Jitter: 1}.DelayWithReset(testingclock.NewFakeClock(time.Now()), 0)
    	for i := 0; i < 5; i++ {
    		value := backoff()
    		if value < 1 || value > 2 {
    			t.Errorf("backoff out of range: %d", value)
    		}
    	}
    
    	// negative jitter, shall be a fixed backoff
    	backoff = Backoff{Duration: 1, Jitter: -1}.DelayWithReset(testingclock.NewFakeClock(time.Now()), 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  3. security/pkg/pki/ca/selfsignedcarootcertrotator.go

    func (rotator *SelfSignedCARootCertRotator) Run(stopCh chan struct{}) {
    	if rotator.config.enableJitter {
    		rootCertRotatorLog.Infof("Jitter is enabled, wait %s before "+
    			"starting root cert rotator.", rotator.backOffTime.String())
    		select {
    		case <-time.After(rotator.backOffTime):
    			rootCertRotatorLog.Infof("Jitter complete, start rotator.")
    		case <-stopCh:
    			rootCertRotatorLog.Info("Received stop signal, so stop the root cert rotator.")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  4. pkg/kubeapiserver/options/authorization_test.go

    		WebhookCacheAuthorizedTTL:   60 * time.Second,
    		WebhookCacheUnauthorizedTTL: 30 * time.Second,
    		WebhookRetryBackoff: &wait.Backoff{
    			Duration: 500 * time.Millisecond,
    			Factor:   1.5,
    			Jitter:   0.2,
    			Steps:    5,
    		},
    	}
    
    	opts := NewBuiltInAuthorizationOptions()
    	pf := pflag.NewFlagSet("test-builtin-authorization-opts", pflag.ContinueOnError)
    	opts.AddFlags(pf)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 06:28:47 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. pkg/kubelet/pluginmanager/plugin_manager_test.go

    	}
    }
    
    func retryWithExponentialBackOff(initialDuration time.Duration, fn wait.ConditionFunc) error {
    	backoff := wait.Backoff{
    		Duration: initialDuration,
    		Factor:   3,
    		Jitter:   0,
    		Steps:    6,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func TestPluginRegistration(t *testing.T) {
    	defer cleanup(t)
    
    	pluginManager := newTestPluginManager(socketDir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

         */
        @JvmField val minimumConcurrentCalls: Int = 0,
        /** How long to wait to retry pre-emptive connection attempts that fail. */
        @JvmField val backoffDelayMillis: Long = 60 * 1000,
        /** How much jitter to introduce in connection retry backoff delays */
        @JvmField val backoffJitterMillis: Int = 100,
      )
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 03 20:39:41 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. src/syscall/ztypes_linux_ppc64le.go

    	Freq      int64
    	Maxerror  int64
    	Esterror  int64
    	Status    int32
    	Pad_cgo_1 [4]byte
    	Constant  int64
    	Precision int64
    	Tolerance int64
    	Time      Timeval
    	Tick      int64
    	Ppsfreq   int64
    	Jitter    int64
    	Shift     int32
    	Pad_cgo_2 [4]byte
    	Stabil    int64
    	Jitcnt    int64
    	Calcnt    int64
    	Errcnt    int64
    	Stbcnt    int64
    	Tai       int32
    	Pad_cgo_3 [44]byte
    }
    
    type Time_t int64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  8. src/syscall/ztypes_linux_arm64.go

    	Freq      int64
    	Maxerror  int64
    	Esterror  int64
    	Status    int32
    	Pad_cgo_1 [4]byte
    	Constant  int64
    	Precision int64
    	Tolerance int64
    	Time      Timeval
    	Tick      int64
    	Ppsfreq   int64
    	Jitter    int64
    	Shift     int32
    	Pad_cgo_2 [4]byte
    	Stabil    int64
    	Jitcnt    int64
    	Calcnt    int64
    	Errcnt    int64
    	Stbcnt    int64
    	Tai       int32
    	Pad_cgo_3 [44]byte
    }
    
    type Time_t int64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  9. internal/http/server.go

    	err := srv.listener.Close()
    	srv.listenerMutex.Unlock()
    	if err != nil {
    		return err
    	}
    
    	pollIntervalBase := time.Millisecond
    	nextPollInterval := func() time.Duration {
    		// Add 10% jitter.
    		interval := pollIntervalBase + time.Duration(rand.Intn(int(pollIntervalBase/10)))
    		// Double and clamp for next time.
    		pollIntervalBase *= 2
    		if pollIntervalBase > shutdownPollIntervalMax {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 09 21:25:16 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go

    	Offset    int64
    	Freq      int64
    	Maxerror  int64
    	Esterror  int64
    	Status    int32
    	Constant  int64
    	Precision int64
    	Tolerance int64
    	Time      Timeval
    	Tick      int64
    	Ppsfreq   int64
    	Jitter    int64
    	Shift     int32
    	Stabil    int64
    	Jitcnt    int64
    	Calcnt    int64
    	Errcnt    int64
    	Stbcnt    int64
    	Tai       int32
    	_         [44]byte
    }
    
    type Time_t int64
    
    type Tms struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top