From e7b487ea06878cd3b228a48c71b4043f4b00d9ca Mon Sep 17 00:00:00 2001 From: ajaxfan <909938737@qq.com> Date: Wed, 19 May 2021 17:11:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=86=94=E6=96=AD=E5=99=A8?= =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E9=87=8F=E6=A8=A1=E5=BC=8F=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E9=87=8F=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/feign-configuration.properties | 5 +++++ 1 file changed, 5 insertions(+) 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