Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 754 for retryOn (3.09 sec)

  1. pilot/pkg/networking/core/route/retry/retry_test.go

    				g.Expect(policy).To(Not(BeNil()))
    				g.Expect(policy.RetryOn).To(Equal(retry.DefaultPolicy().RetryOn))
    				g.Expect(policy.RetriableStatusCodes).To(Equal(retry.DefaultPolicy().RetriableStatusCodes))
    			},
    		},
    		{
    			name: "TestMissingPerTryTimeoutShouldReturnNil",
    			// Create a route with a retry policy without per try timeout.
    			route: &networking.HTTPRoute{
    				Retries: &networking.HTTPRetry{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/route/retry/retry.go

    		out.RetryOn, out.RetriableStatusCodes = parseRetryOn(in.RetryOn)
    		// If user has just specified HTTP status codes in retryOn but have not specified "retriable-status-codes", let us add it.
    		if len(out.RetriableStatusCodes) > 0 && !strings.Contains(out.RetryOn, "retriable-status-codes") {
    			out.RetryOn += ",retriable-status-codes"
    		}
    	}
    
    	if in.PerTryTimeout != nil {
    		out.PerTryTimeout = in.PerTryTimeout
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. tests/fuzz/testdata/FuzzConfigValidation2/fuzz_config_validation2.dict

    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 07 17:07:53 UTC 2021
    - 2K bytes
    - Viewed (0)
  4. pkg/config/validation/validation_test.go

    		}, valid: false},
    		{name: "invalid policy retryOn", in: &networking.HTTPRetry{
    			Attempts:      10,
    			PerTryTimeout: &durationpb.Duration{Seconds: 2},
    			RetryOn:       "5xx,invalid policy",
    		}, valid: false},
    		{name: "invalid http status retryOn", in: &networking.HTTPRetry{
    			Attempts:      10,
    			PerTryTimeout: &durationpb.Duration{Seconds: 2},
    			RetryOn:       "600,connect-failure",
    		}, valid: false},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  5. pkg/config/validation/validation.go

    	if retries.Attempts == 0 && (retries.PerTryTimeout != nil || retries.RetryOn != "" || retries.RetryRemoteLocalities != nil) {
    		errs = appendErrors(errs, errors.New("http retry policy configured when attempts are set to 0 (disabled)"))
    	}
    
    	if retries.PerTryTimeout != nil {
    		errs = appendErrors(errs, agent.ValidateDuration(retries.PerTryTimeout))
    	}
    	if retries.RetryOn != "" {
    		retryOnPolicies := strings.Split(retries.RetryOn, ",")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  6. bin/retry.sh

    # limitations under the License.
    
    # retry.sh retries a command until it succeeds. It accepts a regex pattern to match failures on to
    # determine if a retry should be attempted.
    # Example: retry.sh "connection timed out" ./my-flaky-script.sh some args
    # This will run "my-flaky-script.sh", retrying any failed runs that output "connection timed out" up
    # to 5 times.
    
    function fail {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 11 16:08:08 UTC 2021
    - 2K bytes
    - Viewed (0)
  7. pkg/security/retry.go

    var CARetryOptions = []retry.CallOption{
    	retry.WithMax(5),
    	retry.WithBackoff(wrapBackoffWithMetrics(retry.BackoffExponentialWithJitter(100*time.Millisecond, 0.1))),
    	retry.WithCodes(codes.Canceled, codes.DeadlineExceeded, codes.ResourceExhausted, codes.Aborted, codes.Internal, codes.Unavailable),
    }
    
    // CARetryInterceptor is a grpc UnaryInterceptor that adds retry options, as a convenience wrapper
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. pkg/test/util/retry/retry.go

    //  limitations under the License.
    
    package retry
    
    import (
    	"errors"
    	"fmt"
    	"time"
    
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/test"
    )
    
    var scope = log.RegisterScope("retry", "logs for retries")
    
    const (
    	// DefaultTimeout the default timeout for the entire retry operation
    	DefaultTimeout = time.Second * 30
    
    	// DefaultDelay the default delay between successive retry attempts
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. src/runtime/retry.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package runtime
    
    // retryOnEAGAIN retries a function until it does not return EAGAIN.
    // It will use an increasing delay between calls, and retry up to 20 times.
    // The function argument is expected to return an errno value,
    // and retryOnEAGAIN will return any errno value other than EAGAIN.
    // If all retries return EAGAIN, then retryOnEAGAIN will return EAGAIN.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 760 bytes
    - Viewed (0)
  10. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                            retryOn:
                              description: Specifies the conditions under which retry
                                takes place.
                              type: string
                            retryRemoteLocalities:
                              description: Flag to specify whether the retries should
                                retry to other localities.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.7K bytes
    - Viewed (0)
Back to top