SpringCloud-Hystrix could not acquire a semaphore for execution

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

配置查看 这里github.com/Netflix/Hy.…

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

这样配置就可以了

转载 www.51csdn.cn/article/355…


你可能感兴趣的:(SpringCloud-Hystrix could not acquire a semaphore for execution)