网关异常分析

zuul相关异常

  • 日志量太大,截取相关时间段日志
sed -n '/2018-05-31 14:00:00/,/2018-05-31 18:00:00/p'  xxxx.log > 2-5.log

接口超时异常
  • 设置的30秒
Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: thor timed-out and no fallback available.
信号量获取失败
  • 每秒大于20, 被拒绝的
 com.netflix.hystrix.exception.HystrixRuntimeException: thor could not acquire 
a semaphore for execution and no fallback available
熔断异常
  • 压测的是: 100/s 五次
java.lang.RuntimeException: Hystrix circuit short-circuited and is OPEN

hystrix 原理

  • https://segmentfault.com/a/1190000005988895

你可能感兴趣的:(网关异常分析)