Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for BackOff (0.15 sec)

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

    // backoff will not exceed the given max. If the backoff is not called within resetDuration, the backoff is reset.
    // This backoff manager is used to reduce load during upstream unhealthiness.
    //
    // Deprecated: Will be removed when the legacy Poll methods are removed. Callers should construct a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    		if backoff < 1 || backoff > 2 {
    			t.Errorf("backoff out of range: %d", backoff)
    		}
    	}
    
    	// negative jitter, shall be a fixed backoff
    	backoffMgr = NewJitteredBackoffManager(1, -1, testingclock.NewFakeClock(time.Now()))
    	backoff := backoffMgr.(*jitteredBackoffManagerImpl).getNextBackoff()
    	if backoff != 1 {
    		t.Errorf("backoff should be 1, but got %d", backoff)
    	}
    }
    
    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. staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go

    	// 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)
  4. pkg/controller/job/backoff_utils_test.go

    				failuresAfterLastSuccess: 0,
    			},
    		},
    		"Empty backoff store with no success/failure": {
    			storeInitializer: emptyStoreInitializer,
    			newSucceededPods: []metav1.Time{},
    			newFailedPods:    []metav1.Time{},
    			wantBackoffRecord: backoffRecord{
    				key:                      "key",
    				failuresAfterLastSuccess: 0,
    			},
    		},
    		"Empty backoff store with one success": {
    			storeInitializer: emptyStoreInitializer,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 07:46:41 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultFileLockManager.java

                                if (fileLockContentionHandler.maybePingOwner(lockInfo.port, lockInfo.lockId, displayName, backoff.getTimer().getElapsedMillis() - lastPingTime, backoff.getSignal())) {
                                    lastPingTime = backoff.getTimer().getElapsedMillis();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook.go

    	"k8s.io/client-go/rest"
    	"k8s.io/klog/v2"
    )
    
    // DefaultRetryBackoff returns the default backoff parameters for webhook retry.
    func DefaultRetryBackoff() *wait.Backoff {
    	backoff := webhook.DefaultRetryBackoffWithInitialDelay(500 * time.Millisecond)
    	return &backoff
    }
    
    // Ensure WebhookTokenAuthenticator implements the authenticator.Token interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/ErrorHandlingModuleComponentRepository.java

                        LOGGER.debug("Error while accessing remote repository {}. Waiting {}ms before next retry. {} retries left", repositoryName, backoff, maxTentativesCount - retries, failure);
                        try {
                            Thread.sleep(backoff);
                            backoff *= 2;
                        } catch (InterruptedException e) {
                            throw UncheckedException.throwAsUncheckedException(e);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    	maxControlledAttrCacheSize = 10000
    )
    
    // DefaultRetryBackoff returns the default backoff parameters for webhook retry.
    func DefaultRetryBackoff() *wait.Backoff {
    	backoff := webhook.DefaultRetryBackoffWithInitialDelay(500 * time.Millisecond)
    	return &backoff
    }
    
    // Ensure Webhook implements the authorizer.Authorizer interface.
    var _ authorizer.Authorizer = (*WebhookAuthorizer)(nil)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/authentication.go

    		TokenRequestTimeout: 10 * time.Second,
    	}
    }
    
    // WithCustomRetryBackoff sets the custom backoff parameters for the authentication webhook retry logic.
    func (s *DelegatingAuthenticationOptions) WithCustomRetryBackoff(backoff wait.Backoff) {
    	s.WebhookRetryBackoff = &backoff
    }
    
    // WithRequestTimeout sets the given timeout for requests made by the authentication webhook client.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 14:51:22 UTC 2023
    - 19.9K bytes
    - Viewed (0)
  10. pkg/util/goroutinemap/goroutinemap_test.go

    	return func() error { return nil }
    }
    
    func retryWithExponentialBackOff(initialDuration time.Duration, fn wait.ConditionFunc) error {
    	backoff := wait.Backoff{
    		Duration: initialDuration,
    		Factor:   3,
    		Jitter:   0,
    		Steps:    4,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func waitChannelWithTimeout(ch <-chan interface{}, timeout time.Duration) error {
    	timer := time.NewTimer(timeout)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 14.9K bytes
    - Viewed (0)
Back to top