diff --git a/docs/modules/ROOT/pages/client.adoc b/docs/modules/ROOT/pages/client.adoc index 58a4e7e7..dc9ebb0f 100644 --- a/docs/modules/ROOT/pages/client.adoc +++ b/docs/modules/ROOT/pages/client.adoc @@ -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.