Problems with Ribbon/Feign/Zuul retry

原文
https://github.com/spring-cloud/spring-cloud-netflix/issues/1577
I'm using Spring Cloud Camden SR3, and I wonder whether am I right.
Ribbon Retry
Configuration below can make ribbon retry.
spring:
  cloud: 
    loadbalancer:
      retry: 
        enabled: true
client:
  ribbon:
    MaxAutoRetries: 3
    MaxAutoRetriesNextServer: 3
    OkToRetryOnAllOperations: true
Feign Retry
In Spring Cloud Camden SR3, Feign has its own retry logic. if I want to disable feign's retry, I can use:
@Bean
public Retryer retryer() {
return Retryer.NEVER_RETRY;
}
Zuul Retry
zuul:
  retryable: true
ribbon:
  MaxAutoRetries: 3
  MaxAutoRetriesNextServer: 3
  OkToRetryOnAllOperations: true
posted @ 2017-05-31 10:02  张建斌  阅读(743)  评论(0编辑  收藏  举报