当前位置:网站首页>【Zuul】com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
【Zuul】com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
2022-07-02 15:50:00 【后端研发Marion】
通过API网关路由来访问用户服务,zuul默认路由规则 :http://zuul的Host地址:zuul端口/要调用的服务名/服务方法地址
浏览器中打开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
这个错误是应为zuul的默认超时时间比较小,我们配置下zuul的超时时间,因zuul启用了ribbon的负载均衡,还需要设置ribbon的超时时间,注意ribbon的超时时间要小于zuul超时时间 。
zuul:
host:
connect-timeout-millis: 15000 #HTTP连接超时要比Hystrix的大
socket-timeout-millis: 60000 #socket超时
ribbon:
ReadTimeout: 10000
ConnectTimeout: 10000
边栏推荐
- easyswoole3.2重启不成功
- Nexus簡介及小白使用IDEA打包上傳到Nexus3私服詳細教程
- Microservice architecture practice: Construction of scalable distributed database cluster
- Platform management background and merchant menu resource management: merchant role management design
- [非线性控制理论]7_High gain and High Frequency
- Common SQL statements (complete example)
- [nonlinear control theory]8_ Comparison of three robust controllers
- ROS knowledge points -- the difference between ros:: nodehandle N and NH ("~")
- Wechat applet - arrows floating up and down
- What are the green field and brown field models in software development - green field development and brown field development
猜你喜欢
Income and risk of linear programming example investment
chrome浏览器快速访问stackoverflow
Goodbye, shucang. Alibaba's data Lake construction strategy is really awesome!
si446使用记录(二):使用WDS3生成头文件
例题 非线性整数规划
【GAMES101】作业4 Bézier 曲线
Platform management background and merchant menu resource management: merchant role management design
Easyswoole3.2 restart failed
Modbus协议通信异常
si446使用记录(一):基本资料获取
随机推荐
嵌入式开发板 ~ 说明
uniapp H5页面调用微信支付
easyAI笔记——深度学习
RK1126平台项目总结
简单线性规划问题
Atcoder beginer contest 237 VP supplement
Schoolbag novel multithreaded crawler [easy to understand]
[web technology] 1233 seconds understand web component
Five reasons to choose SAP Spartacus as the implementation framework of SAP commerce cloud storefront
[nonlinear control theory]7_ High gain and High Frequency
easyswoole3.2重启不成功
POJ - 1458 common subsequence (longest common subsequence)
Explanation of traceroute command
Ssm+ wechat applet to realize property management system
Vscode knowledge points - Common Errors
chrome瀏覽器快速訪問stackoverflow
Navigateur Chrome pour un accès rapide au stackoverflow
When the industrial Internet began to enter the deep-water area, it appeared more in the form of industry
No such file or directory: ‘/tmp/tmpxxx/tmpxxx.py‘
How to create a new page for SAP Spartacus storefront