spring cloud 超时时间

zuul.host.socket-timeout-millis=60000 #zuul socket连接超时
zuul.host.connect-timeout-millis=60000 #zull 请求连接超时时间

hystrix.command.default.execution.timeout.enabled=true #如果enabled设置为false,则请求超时交给ribbon控制,为true,则超时作为熔断根据
hystrix.command.default.execution.isolation.strategy=SEMAPHORE #THREAD —— 在固定大小线程池中,以单独线程执行,并发请求数受限于线程池大小   SEMAPHORE —— 在调用线程中执行,通过信号量来限制并发量
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000 #断路器超时时间,默认1000ms


feign.hystrix.enabled=true
feign.config.connectTimeout=50000  
feign.config.readTimeout=50000


ribbon.MaxAutoRetries=0 #对当前实例的重试次数,默认0
ribbon.ReadTimeout=60000 #负载均衡超时时间,默认值5000
ribbon.OkToRetryOnAllOperations=false #对所有操作请求都进行重试,默认false
ribbon.ConnectTimeout=60000 #ribbon请求连接的超时时间,默认值2000
ribbon.MaxAutoRetriesNextServer=0 #对切换实例的重试次数,默认1

原文地址:https://www.cnblogs.com/lobin/p/10613548.html