【发布时间】:2017-11-16 13:29:21
【问题描述】:
我正在尝试对 zuul version 1.1.2 进行负载测试。
但是在运行负载测试几分钟后,我不断收到以下问题。
Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: book could not acquire a semaphore for execution and no fallback available.
at com.netflix.hystrix.AbstractCommand$21.call(AbstractCommand.java:783) ~[hystrix-core-1.5.3.jar:1.5.3]
我的问题是如何通过配置增加maxSemaphores。
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds= 20000000
zuul.hystrix.command.default.execution.isolation.strategy= SEMAPHORE
zuul.hystrix.command.default.execution.isolation.semaphore.maxConcurrentRequests= 10
zuul.hystrix.command.default.fallback.isolation.semaphore.maxConcurrentRequests= 10
zuul.semaphore.maxSemaphores=3000
zuul.eureka.book.semaphore.maxSemaphore=30000
我尝试在 Internet 上搜索许多选项,但其中一个对我有用
请指教
【问题讨论】:
标签: netflix-zuul spring-cloud-netflix hystrix