yourName 1 년 전
부모
커밋
260fdc0ebb
2개의 변경된 파일9개의 추가작업 그리고 3개의 파일을 삭제
  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