Cache config client health indicator.

So config server isn't bombarded with requests.
This commit is contained in:
Spencer Gibb
2016-06-24 17:30:01 -06:00
parent 6c0aa53b28
commit b155a1d58b
5 changed files with 118 additions and 27 deletions

View File

@@ -1166,6 +1166,10 @@ If you use another form of security you might need to <<custom-rest-template,pro
`RestTemplate`>> to the `ConfigServicePropertySourceLocator` (e.g. by
grabbing it in the bootstrap context and injecting one).
==== Health Indicator
The Config Client supplies a Spring Boot Health Indicator that attempts to load configuration from Config Server. The health indicator can be disabled by setting `health.config.enabled=false`. The response is also cached for performance reasons. The default cache time to live is 5 minutes. To change that value set the `health.config.time-to-live` property (in milliseconds).
[[custom-rest-template]]
==== Providing A Custom RestTemplate