From 4f6ae7231b7b7deed6ef4d0bbae8259340db3945 Mon Sep 17 00:00:00 2001 From: Fabiano Ghisla Date: Thu, 14 Feb 2019 21:43:41 +0100 Subject: [PATCH] documented value of config.fail-fast value for retry is incorrect (#1250) The value of `config.fail-fast` must be set to non-false value in order to activate the `RetryConfiguration`. --- docs/src/main/asciidoc/spring-cloud-config.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/spring-cloud-config.adoc b/docs/src/main/asciidoc/spring-cloud-config.adoc index 90d830ab..5e4ec218 100644 --- a/docs/src/main/asciidoc/spring-cloud-config.adoc +++ b/docs/src/main/asciidoc/spring-cloud-config.adoc @@ -1339,7 +1339,7 @@ If this is the desired behavior, set the bootstrap configuration property `sprin === Config Client Retry If you expect that the config server may occasionally be unavailable when your application starts, you can make it keep trying after a failure. -First, you need to set `spring.cloud.config.fail-fast=false`. +First, you need to set `spring.cloud.config.fail-fast=true`. Then you need to add `spring-retry` and `spring-boot-starter-aop` to your classpath. The default behavior is to retry six times with an initial backoff interval of 1000ms and an exponential multiplier of 1.1 for subsequent backoffs. You can configure these properties (and others) by setting the `spring.cloud.config.retry.*` configuration properties.