SpringCloud-Hystrix 更换 http2.0 报 could not acquire a semaphore for execution

这是因为http 2.0 是异步的操作 而 Hystrix的处理只有10 所有会保报错

hystrix:
  command:
    default:
      execution:
        isolation:
          strategy: SEMAPHORE
          thread:
            timeoutInMilliseconds:  120000
          semaphore:
            maxConcurrentRequests: 1000
      circuitBreaker:
        sleepWindowInMilliseconds:  5000

这样配置就可以了

 

转载 https://www.51csdn.cn/article/355.html


版权声明:本文为qq_43599835原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。