From 414b1704e13c01fe32a07acdcf536494394d192a Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Thu, 30 Mar 2017 19:11:03 -0400 Subject: [PATCH] Documenting property to disable retry logic with Spring Retry on the class path --- docs/src/main/asciidoc/spring-cloud-commons.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/spring-cloud-commons.adoc b/docs/src/main/asciidoc/spring-cloud-commons.adoc index 8906ccce..0b151145 100644 --- a/docs/src/main/asciidoc/spring-cloud-commons.adoc +++ b/docs/src/main/asciidoc/spring-cloud-commons.adoc @@ -363,7 +363,9 @@ for details of how the `RestTemplate` is set up. A load balanced `RestTemplate` can be configured to retry failed requests. By default this logic is disabled, you can enable it by adding link:https://github.com/spring-projects/spring-retry[Spring Retry] to your application's classpath. The load balanced `RestTemplate` will -honor some of the Ribbon configuration values related to retrying failed requests. +honor some of the Ribbon configuration values related to retrying failed requests. If +you would like to disable the retry logic with Spring Retry on the classpath +you can set `spring.cloud.loadbalancer.retry.enabled=false`. The properties you can use are `client.ribbon.MaxAutoRetries`, `client.ribbon.MaxAutoRetriesNextServer`, and `client.ribbon.OkToRetryOnAllOperations`. See the https://github.com/Netflix/ribbon/wiki/Getting-Started#the-properties-file-sample-clientproperties[Ribbon documentation]