SpringCloud-Hystrix could not acquire a semaphore for execution
文章目录
这是因为http 2.0 是异步的操作 而 Hystrix的处理只有10 所有会保报错
配置查看 这里https://github.com/Netflix/Hy...
hystrix:
command:
default:
execution:
isolation:
strategy: SEMAPHORE
thread:
timeoutInMilliseconds: 120000
semaphore:
maxConcurrentRequests: 1000
circuitBreaker:
sleepWindowInMilliseconds: 5000
这样配置就可以了

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论