Hystrix熔断机制导致误报请求超时错误

问题的过程如下:

(1)前端向服务端请求往HBase插入1000条数据;

(2)请求经路由网关Zuul传递给HBaseService,HBaseService执行插入操作;

(3)插入操作需要的时间超过Zuul设定的阈值,Zuul判定HBaseService服务下线,报错并向前端返回请求超时信息;

(4)插入操作正确执行;

猜你喜欢

转载自www.cnblogs.com/ratels/p/11106443.html