原文
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

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2021-12-17
  • 2022-12-23
  • 2021-07-25
  • 2021-05-15
  • 2021-08-23
  • 2021-05-23
猜你喜欢
  • 2021-11-20
  • 2021-05-14
  • 2021-09-30
  • 2021-08-27
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案