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
博客所有内容仅供自已学习和学习过程的记录,如有侵权,请联系我删除!!!