diff --git a/mall-ebtp-cloud-feign-starter/src/main/resources/feign-configuration.properties b/mall-ebtp-cloud-feign-starter/src/main/resources/feign-configuration.properties index 544219e..764d587 100644 --- a/mall-ebtp-cloud-feign-starter/src/main/resources/feign-configuration.properties +++ b/mall-ebtp-cloud-feign-starter/src/main/resources/feign-configuration.properties @@ -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