SpringCloud-Hystrix 报 could not acquire a semaphore for execution

今天SpringCloud-Hystrix 并发调用报could not acquire a semaphore for execution,配置以下设置,完美解决

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

posted @ 2020-11-21 20:21  anakinf  阅读(4673)  评论(0编辑  收藏  举报