Update docs to add note on other retry properties when using random backoff. Fixes #2378
This commit is contained in:
@@ -95,6 +95,10 @@ The default behavior is to retry six times with an initial backoff interval of 1
|
||||
You can configure these properties (and others) by setting the `spring.cloud.config.retry.*` configuration properties.
|
||||
To use a random exponential backoff policy set `spring.cloud.config.retry.useRandomPolicy` to `true`.
|
||||
|
||||
NOTE: When `spring.cloud.config.retry.useRandomPolicy` is `true` the `max-attempts`, `initial-interval`, `max-interval`, and `multiplier` properties will
|
||||
still have an effect even when using a random exponential backoff policy. The details on how they are used can be found in the
|
||||
`ExponentialRandomBackOffPolicy` and `ExponentialBackOffPolicy` in https://github.com/spring-projects/spring-retry[Spring Retry].
|
||||
|
||||
TIP: To take full control of the retry behavior and are using legacy bootstrap, add a `@Bean` of type `RetryOperationsInterceptor` with an ID of `configServerRetryInterceptor`.
|
||||
Spring Retry has a `RetryInterceptorBuilder` that supports creating one.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user