Bladeren bron

设置hystrix连接超时时间

my-csc-config-file.git 5 jaren geleden
bovenliggende
commit
c30b0de1f8
4 gewijzigde bestanden met toevoegingen van 58 en 0 verwijderingen
  1. 13 0
      csc-szls-business-dev.yml
  2. 13 0
      csc-szls-message-dev.yml
  3. 18 0
      csc-szls-oauth-dev.yml
  4. 14 0
      csc-szls-system-manage-dev.yml

+ 13 - 0
csc-szls-business-dev.yml

@@ -61,8 +61,21 @@ ribbon:
61 61
 
62 62
 #熔断器开启
63 63
 feign:
64
+  client:
65
+    config:
66
+      default:
67
+        connect-timeout: 9000
68
+        read-timeout: 9000
64 69
   hystrix:
65 70
     enabled: true
71
+
72
+hystrix:
73
+  command:
74
+    default:
75
+      execution:
76
+        isolation:
77
+          thread:
78
+            timeoutInMilliseconds: 9000
66 79
 # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
67 80
 management:
68 81
   endpoints:

+ 13 - 0
csc-szls-message-dev.yml

@@ -91,8 +91,21 @@ ribbon:
91 91
 
92 92
 #熔断器开启
93 93
 feign:
94
+  client:
95
+    config:
96
+      default:
97
+        connect-timeout: 9000
98
+        read-timeout: 9000
94 99
   hystrix:
95 100
     enabled: true
101
+
102
+hystrix:
103
+  command:
104
+    default:
105
+      execution:
106
+        isolation:
107
+          thread:
108
+            timeoutInMilliseconds: 9000
96 109
 # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
97 110
 management:
98 111
   endpoints:

+ 18 - 0
csc-szls-oauth-dev.yml

@@ -51,6 +51,24 @@ management:
51 51
     health:
52 52
       show-details: ALWAYS
53 53
 
54
+#熔断器开启
55
+feign:
56
+  client:
57
+    config:
58
+      default:
59
+        connect-timeout: 9000
60
+        read-timeout: 9000
61
+  hystrix:
62
+    enabled: true
63
+
64
+hystrix:
65
+  command:
66
+    default:
67
+      execution:
68
+        isolation:
69
+          thread:
70
+            timeoutInMilliseconds: 9000
71
+
54 72
 mybatis:
55 73
   mapper-locations: classpath:/mapper/*Mapper.xml
56 74
 

+ 14 - 0
csc-szls-system-manage-dev.yml

@@ -67,8 +67,22 @@ ribbon:
67 67
 
68 68
 #熔断器开启
69 69
 feign:
70
+  client:
71
+    config:
72
+      default:
73
+        connect-timeout: 9000
74
+        read-timeout: 9000
70 75
   hystrix:
71 76
     enabled: true
77
+
78
+hystrix:
79
+  command:
80
+    default:
81
+      execution:
82
+        isolation:
83
+          thread:
84
+            timeoutInMilliseconds: 9000
85
+
72 86
 # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
73 87
 management:
74 88
   endpoints: