From ef5dc79ae98df4ca8a2c2b574615d44a9eb9d129 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Fri, 17 Feb 2017 23:27:46 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-netflix.html | 47 +++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/spring-cloud-netflix.html b/spring-cloud-netflix.html index 5544f2b50..60dd9f474 100644 --- a/spring-cloud-netflix.html +++ b/spring-cloud-netflix.html @@ -2466,23 +2466,6 @@ path rendering the users path unreachable.

deprecated Ribbon RestClient. To use RestClient or to use the okhttp3.OkHttpClient set ribbon.restclient.enabled=true or ribbon.okhttp.enabled=true respectively.

-
-

Retrying Failed Requests

-
-

When using the Apache Http Client or the OK HTTP Client you can enable them to automatically -retry failed requests by adding Spring Retry -to your application’s classpath. When Zuul uses Ribbon, Zuul will honor some of the Ribbon -configuration values related to retrying failed requests. The properties you can use are -client.ribbon.MaxAutoRetries, client.ribbon.MaxAutoRetriesNextServer, and -client.ribbon.OkToRetryOnAllOperations. See the Ribbon documentation -for a description of what there properties do.

-
-
-

You can turn off Zuul’s retry functionality by setting zuul.retryable to false. You -can also disable retry functionality on route by route basis by setting -zuul.routes.routename.retryable to false.

-
-

Cookies and Sensitive Headers

@@ -3726,6 +3709,36 @@ After executing several requests against your service, you can gather some very
+
+

Retrying Failed Requests

+
+

Spring Cloud Netflix offers a variety of ways to make HTTP requests. You can use a load balanced +RestTemplate, Ribbon, or Feign. No matter how you choose to your HTTP requests, there is always +a chance the request may fail. When a request fails you may want to have the request retried +automatically. To accomplish this when using Sping Cloud Netflix you need to include +Spring Retry on your application’s classpath. +When Spring Retry is present load balanced RestTemplates, Feign, and Zuul will automatically +retry any failed requests (assuming you configuration allows it to).

+
+
+

Configuration

+
+

Anytime Ribbon is used with Spring Retry you can control the retry functionality by configuring +certain Ribbon properties. The properties you can use are +client.ribbon.MaxAutoRetries, client.ribbon.MaxAutoRetriesNextServer, and +client.ribbon.OkToRetryOnAllOperations. See the Ribbon documentation +for a description of what there properties do.

+
+
+
+

Zuul

+
+

You can turn off Zuul’s retry functionality by setting zuul.retryable to false. You +can also disable retry functionality on route by route basis by setting +zuul.routes.routename.retryable to false.

+
+
+