Update docs to add note on other retry properties when using random backoff. Fixes #2378

This commit is contained in:
Ryan Baxter
2024-02-01 14:18:33 -05:00
parent 0dc0a8b68c
commit fecaa1f5d3

View File

@@ -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.