Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for retryRemoteLocalities (0.48 sec)

  1. pkg/config/validation/validation_test.go

    			PerTryTimeout: &durationpb.Duration{Seconds: 2},
    			RetryOn:       "600,connect-failure",
    		}, valid: false},
    		{name: "invalid, retryRemoteLocalities configured but attempts set to zero", in: &networking.HTTPRetry{
    			Attempts:              0,
    			RetryRemoteLocalities: &wrapperspb.BoolValue{Value: false},
    		}, valid: false},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  2. pkg/config/validation/validation.go

    	if retries.Attempts < 0 {
    		errs = multierror.Append(errs, errors.New("attempts cannot be negative"))
    	}
    
    	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 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  3. tests/integration/pilot/common/routing.go

      http:
      - route:
        - destination:
            host: {{ .dstSvc }}
        retries:
          attempts: 3
          perTryTimeout: 2s
          retryOn: gateway-error,connect-failure,refused-stream
          retryRemoteLocalities: true`,
    		opts: echo.CallOptions{
    			Port: echo.Port{
    				Name: "http",
    			},
    			Count: 1,
    			Check: check.OK(),
    		},
    		workloadAgnostic: true,
    	})
    	t.RunTraffic(TrafficTestCase{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
Back to top