com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
生活随笔
收集整理的這篇文章主要介紹了
com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
通過API網(wǎng)關(guān)路由來訪問用戶服務(wù),zuul默認路由規(guī)則 :http://zuul的Host地址:zuul端口/要調(diào)用的服務(wù)名/服務(wù)方法地址
瀏覽器中打開http://127.0.0.1:8000/wallet/system/hello/1
報錯:
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Aug 07 17:49:01 CST 2018
There was an unexpected error (type=Gateway Timeout, status=504).
com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
這個錯誤是應(yīng)為zuul的默認超時時間比較小,我們配置下zuul的超時時間,因zuul啟用了ribbon的負載均衡,還需要設(shè)置ribbon的超時時間,注意ribbon的超時時間要小于zuul超時時間 。
總結(jié)
以上是生活随笔為你收集整理的com.netflix.zuul.exception.ZuulException: Hystrix Readed time out的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java.lang.IllegalSta
- 下一篇: 解决Spring Boot 整合Secu