- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of about 10,000 for jitter (0.22 sec)
-
staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook_test.go
require.NoError(t, stdjson.NewEncoder(f).Encode(config), "writing kubeconfig") retryBackoff := wait.Backoff{ Duration: 500 * time.Millisecond, Factor: 1.5, Jitter: 0.2, Steps: 5, } b, err := NewBackend(f.Name(), groupVersion, retryBackoff, nil) require.NoError(t, err, "initializing backend") return b.(*backend) } func TestWebhook(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 08 06:37:26 UTC 2022 - 3.9K bytes - Viewed (0) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/util/webhook/webhook.go
func DefaultRetryBackoffWithInitialDelay(initialBackoffDelay time.Duration) wait.Backoff { return wait.Backoff{ Duration: initialBackoffDelay, Factor: 1.5, Jitter: 0.2, Steps: 5, } } // GenericWebhook defines a generic client for webhooks with commonly used capabilities, // such as retry requests. type GenericWebhook struct { RestClient *rest.RESTClient
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 20 19:02:55 UTC 2023 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/dropped_requests_tracker_test.go
startCh := make(chan struct{}) wg := sync.WaitGroup{} numPLs := 5 // For all `numPLs` priority levels, create b.N workers each // of which will try to record a dropped request every 100ms // with a random jitter. for i := 0; i < numPLs; i++ { plName := fmt.Sprintf("priority-level-%d", i) for i := 0; i < b.N; i++ { wg.Add(1) go func() { defer wg.Done() <-startCh for a := 0; a < 5; a++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 26 13:50:25 UTC 2023 - 4.9K bytes - Viewed (0) -
pkg/util/node/node.go
func GetNodeIP(client clientset.Interface, name string) net.IP { var nodeIP net.IP backoff := wait.Backoff{ Steps: 6, Duration: 1 * time.Second, Factor: 2.0, Jitter: 0.2, } err := wait.ExponentialBackoff(backoff, func() (bool, error) { node, err := client.CoreV1().Nodes().Get(context.TODO(), name, metav1.GetOptions{}) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 27 23:24:38 UTC 2023 - 4.8K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go
err = setlkw(f.Fd(), lt) if err != syscall.EDEADLK { break } time.Sleep(nextSleep) nextSleep += nextSleep if nextSleep > maxSleep { nextSleep = maxSleep } // Apply 10% jitter to avoid synchronizing collisions when we finally unblock. nextSleep += time.Duration((0.1*rand.Float64() - 0.05) * float64(nextSleep)) } if err != nil { unlock(f) return &fs.PathError{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 17 02:24:35 UTC 2023 - 5.5K bytes - Viewed (0) -
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) -
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) -
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)