springcloud-gateway 中对服务的降级、熔断、限流遇见的一个问题

2022-07-06 07:59:50

1、遇见的问题:

com.netflix.hystrix.exception.HystrixRuntimeException: fallbackcmd fallback execution rejected.

同时配置服务熔断和redis限流后,使用jMeter进行压力测试时,部分gateway部分请求抛出如上错误;

根据网上各位大佬找到的解决方案:

①.

hystrix:
  command:
    fallbackcmd:
      execution:
        isolation:
          strategy: SEMAPHORE
#          semaphore:
#            maxConcurrentRequests: 1000
          thread:
            timeoutInMilliseconds: 1000

修改配置文件中的最大请求数量,并且将限流最大访问数量适当增加;

  • 作者:n727158431
  • 原文链接:https://blog.csdn.net/n727158431/article/details/105278777
    更新时间:2022-07-06 07:59:50