Spring Cloud: Hystrix请求队列线程不足

2018-09-27  本文已影响0人  MeazZa

在Spring Cloud中,Feign可以实现本地化的微服务API调用,Hystrix可以实现调用失败时的fallback处理。

"..., stack trace: [com.netflix.hystrix.exception.HystrixRuntimeException: QueryNodeImpalaBdService#getQueryResult(QueryRequest) could not be queued for execution and no fallback available.]"

从异常信息来看,是由于请求超出了队列的限制,导致无法被处理而抛出异常。

hystrix:
  threadpool:
    default:
      coreSize: 100 # default is 10

这样就可以避免上述报错。具体的源码分析待补充。

上一篇 下一篇

猜你喜欢

热点阅读