Ver código fonte

优化WebClient 配置

liyanbo 1 mês atrás
pai
commit
7c4cccb8f3
1 arquivos alterados com 12 adições e 0 exclusões
  1. 12 0
      byzs-server/src/main/resources/application.yaml

+ 12 - 0
byzs-server/src/main/resources/application.yaml

@@ -247,6 +247,18 @@ byzs:
   web:
     admin-ui:
       url:  # Admin 管理后台 UI 的地址
+    web-client:
+      connect-timeout: 30s # 连接超时时间
+      read-timeout: 2m # 读取超时时间
+      write-timeout: 1m # 写入超时时间
+      pool:
+        max-connections: 100 # 最大连接数
+        max-idle-time: 2m # 最大空闲时间
+        max-life-time: 10m # 最大生命周期
+      retry:
+        enabled: true # 启用重试
+        max-attempts: 3 # 最大重试次数
+        backoff: 500ms # 重试间隔时间
   xss:
     enable: false
     exclude-urls: