hystrix: command: default: execution: timeout: enabled: true isolation: thread: ##断路器的超时时间需要大于ribbon的超时时间,不然不会触发重试 timeoutInMilliseconds: 30000 threadpool: default: coreSize: 20 ribbon: ##请求处理的超时时间 ReadTimeout: 5000 ##请求连接的超时时间 ConnectTimeout: 2000 ##对当前实例的重试次数 MaxAutoRetries: 1 ##对所有操作请求都进行重试 OkToRetryOnAllOperations: true ##切换实例的重试次数 MaxAutoRetriesNextServer: 1
springcloud hystrix+ribbon 的Timeout配置
最新推荐文章于 2024-02-07 16:18:55 发布