yourName 1 year ago
parent
commit
260fdc0ebb
2 changed files with 9 additions and 3 deletions
  1. 5 2
      src/main/resources/application-dev.yml
  2. 4 1
      src/main/resources/application-prod.yml

+ 5 - 2
src/main/resources/application-dev.yml

@@ -28,7 +28,7 @@ spring:
 
 
 server:
-  port: 8080
+  port: 9080
   tomcat:
     max-threads: 1000
     accept-count: 800
@@ -82,4 +82,7 @@ hystrix:
       execution:
         isolation:
           thread:
-            timeoutInMilliseconds: 15000 #设置熔断时间,单位毫秒
+            timeoutInMilliseconds: 15000 #设置熔断时间,单位毫秒
+          strategy: SEMAPHORE
+          semaphore:
+            maxConcurrentRequests: 1

+ 4 - 1
src/main/resources/application-prod.yml

@@ -67,4 +67,7 @@ hystrix:
       execution:
         isolation:
           thread:
-            timeoutInMilliseconds: 15000 #设置熔断时间,单位毫秒
+            timeoutInMilliseconds: 15000 #设置熔断时间,单位毫秒
+          strategy: SEMAPHORE
+          semaphore:
+            maxConcurrentRequests: 1