From 2ec9942250d735cbfd5247c216c90a6842ac7873 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 24 Jul 2015 09:12:22 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-config.html | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/spring-cloud-config.html b/spring-cloud-config.html index 5548ad96..fd452953 100644 --- a/spring-cloud-config.html +++ b/spring-cloud-config.html @@ -437,6 +437,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
  • Config First Bootstrap
  • Eureka First Bootstrap
  • Config Client Fail Fast
  • +
  • Config Client Retry
  • Locating Remote Configuration Resources
  • Security
  • @@ -1278,6 +1279,32 @@ an Exception.

    +

    Config Client Retry

    +
    +

    If you expect that the config server may occasionally be unavailable when +your app starts, you can ask it to keep trying after a failure. First you need +to set spring.cloud.config.failFast=true, and then you need to add +spring-retry and spring-boot-starter-aop to your classpath. The default +behaviour is to retry 6 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) using spring.config.retry.* configuration properties.

    +
    +
    + + + + + +
    +
    Tip
    +
    +To take full control of the retry add a @Bean of type +RetryOperationsInterceptor with id "configServerRetryInterceptor". Spring +Retry has a RetryInterceptorBuilder that makes it easy to create one. +
    +
    +
    +

    Locating Remote Configuration Resources

    The Config Service serves property sources from /{name}/{profile}/{label}, where the default bindings in the client app are

    @@ -1369,7 +1396,7 @@ grabbing it in the bootstrap context and injecting one).