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
原文地址:https://www.cnblogs.com/zhangjianbin/p/6922758.html