增加熔断器信号量模式并发量参数配置
This commit is contained in:
@ -3,11 +3,16 @@ feign.hystrix.enabled=true
|
||||
feign.client.config.default.connectTimeout=200000
|
||||
feign.client.config.default.readTimeout=200000
|
||||
|
||||
# 使用线程池模式,允许的并发访问量
|
||||
hystrix.threadpool.default.coreSize=10
|
||||
hystrix.threadpool.default.maximumSize=1000
|
||||
hystrix.threadpool.default.maxQueueSize=1000
|
||||
hystrix.threadpool.default.queueSizeRejectionThreshold=1000
|
||||
hystrix.threadpool.default.allowMaximumSizeToDivergeFromCoreSize=true
|
||||
|
||||
# 如果使用信号量模式,最大允许并发请求数
|
||||
hystrix.command.default.execution.isolation.semaphore.maxConcurrentRequests=1000
|
||||
|
||||
# 默认使用线程池模式
|
||||
hystrix.command.default.execution.isolation.strategy=THREAD
|
||||
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=20000
|
||||
|
Reference in New Issue
Block a user