Browse Source

ribbion配置

gaodm 4 years ago
parent
commit
d3d0b94aba

+ 6 - 0
src/main/resources/application-dev.yml

@@ -20,6 +20,12 @@ hystrix:
           thread:
           thread:
             timeoutInMilliseconds: 20000
             timeoutInMilliseconds: 20000
 
 
+ribbon:
+  ReadTimeout: 20000
+  ConnectTimeout: 20000
+  MaxAutoRetries: 0
+  MaxAutoRetriesNextServer: 1
+
 feign:
 feign:
   hystrix:
   hystrix:
     enabled: true
     enabled: true

+ 6 - 0
src/main/resources/application-local.yml

@@ -20,6 +20,12 @@ hystrix:
           thread:
           thread:
             timeoutInMilliseconds: 20000
             timeoutInMilliseconds: 20000
 
 
+ribbon:
+  ReadTimeout: 20000
+  ConnectTimeout: 20000
+  MaxAutoRetries: 0
+  MaxAutoRetriesNextServer: 1
+
 feign:
 feign:
   hystrix:
   hystrix:
     enabled: true
     enabled: true

+ 6 - 0
src/main/resources/application-pre.yml

@@ -20,6 +20,12 @@ hystrix:
           thread:
           thread:
             timeoutInMilliseconds: 20000
             timeoutInMilliseconds: 20000
 
 
+ribbon:
+  ReadTimeout: 20000
+  ConnectTimeout: 20000
+  MaxAutoRetries: 0
+  MaxAutoRetriesNextServer: 1
+
 feign:
 feign:
   hystrix:
   hystrix:
     enabled: true
     enabled: true

+ 6 - 0
src/main/resources/application-pro.yml

@@ -20,6 +20,12 @@ hystrix:
           thread:
           thread:
             timeoutInMilliseconds: 20000
             timeoutInMilliseconds: 20000
 
 
+ribbon:
+  ReadTimeout: 20000
+  ConnectTimeout: 20000
+  MaxAutoRetries: 0
+  MaxAutoRetriesNextServer: 1
+
 feign:
 feign:
   hystrix:
   hystrix:
     enabled: true
     enabled: true

+ 6 - 0
src/main/resources/application-test.yml

@@ -20,6 +20,12 @@ hystrix:
           thread:
           thread:
             timeoutInMilliseconds: 20000
             timeoutInMilliseconds: 20000
 
 
+ribbon:
+  ReadTimeout: 20000
+  ConnectTimeout: 20000
+  MaxAutoRetries: 0
+  MaxAutoRetriesNextServer: 1
+
 feign:
 feign:
   hystrix:
   hystrix:
     enabled: true
     enabled: true