com.netflix.zuul.exception.ZuulException:Hystrix Readed time out

这个错误是应为zuul的默认超时时间比较小,我们配置下zuul的超时时间,因zuul启用了ribbon的负载均衡,还需要设置ribbon的超时时间,注意ribbon的超时时间要小于zuul超时时间 。

在网关中的yml文件中添加如下

ribbon:
  ReadTimeout: 10000
  ConnectTimeout: 10000
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 12000

这里会报错但是不用管
com.netflix.zuul.exception.ZuulException:Hystrix Readed time out_第1张图片

你可能感兴趣的:(com.netflix.zuul.exception.ZuulException:Hystrix Readed time out)