我想爲zuul version 1.1.2
做負載測試。配置maxSemaphores zuul服務器
但是,在運行負載測試後,我幾分鐘後不斷收到以下問題。
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
我曾嘗試在搜索的Intenet很多的選擇,但這些作品之一,我
請告知