yonge 5 years ago
parent
commit
066bede88f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      mec-gateway/mec-gateway-web/src/main/resources/application.yml

+ 5 - 0
mec-gateway/mec-gateway-web/src/main/resources/application.yml

@@ -112,7 +112,12 @@ hystrix:
       execution:
         isolation:
           thread:
+            #发生熔断的超时时间
             timeoutInMilliseconds: 60000
+          semaphore:
+            maxConcurrentRequests: 500
+          circuitBreaker:
+            sleepWindowInMilliseconds: 5000
 
 
 #spring boot admin 相关配置