SpringCloud Hystrix Ribbon超时时间和重试机制
Hystrix和Ribbon配置hystrix和ribbon配置如下ribbon: ReadTimeout: 2000 #秒 ConnectTimeout: 2000 #秒 MaxAutoRetries: 1 #同一台实例最大重试次数,不包括首次调用; MaxAutoRetriesNextServer: 1 #重试负载均衡其他的实例最大重试次数,不包括首次 OkToRetryOnAllOperations: false #是否所有操作都重试 , 设置为false时,则是对get请求
原创
2021-02-26 17:23:49 ·
601 阅读 ·
1 评论