提交 0bb2d1e4 编写于 作者: zlt2000's avatar zlt2000

zuul 配置优化

上级 16ddb3fc
########################## 统一变量配置 ##########################
##### eureka配置 - 已经换成Nacos所以注释掉
#zlt.eureka.client.serviceUrl.defaultZone=http://192.168.28.130:1111/eureka
##### 数据库配置
zlt.datasource.ip=192.168.28.131
zlt.datasource.username=root
......
......@@ -7,20 +7,13 @@ management.endpoints.web.exposure.include=*
management.endpoint.health.show-details=always
##### eureka配置 - 已经换成Nacos所以注释掉
# 注册服务ip到eureka server上
#eureka.instance.prefer-ip-address=true
# 自定义服务实例id
#eureka.instance.instance-id=${spring.application.name}:${spring.cloud.client.ip-address}:${server.port}
##### ribbon配置
# 从注册中心刷新servelist的时间 默认30秒,单位ms
ribbon.ServerListRefreshInterval=15000
#请求连接的超时时间 默认1秒,单位ms
ribbon.ConnectTimeout=15000
ribbon.ConnectTimeout=30000
# 请求处理的超时时间 默认1秒,单位ms
ribbon.ReadTimeout=15000
ribbon.ReadTimeout=30000
# 对所有操作请求都进行重试,不配置这个MaxAutoRetries不起作用 默认false
#ribbon.OkToRetryOnAllOperations=true
# 对当前实例的重试次数 默认0
......@@ -34,6 +27,8 @@ feign.sentinel.enabled=true
feign.hystrix.enabled=false
feign.okhttp.enabled=true
feign.httpclient.enabled=false
feign.httpclient.max-connections=1000
feign.httpclient.max-connections-per-route=100
feign.client.config.feignName.connectTimeout=30000
feign.client.config.feignName.readTimeout=30000
feign.compression.request.enabled=true
......
......@@ -115,6 +115,20 @@ zuul:
strip-prefix: true
ssl-hostname-validation-enabled: false
hystrix:
threadpool:
default:
coreSize: 100
maximumSize: 2000
allowMaximumSizeToDivergeFromCoreSize: true
maxQueueSize: -1
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 60000
swagger:
butler:
api-docs-path: v2/api-docs
......
server:
port: 9900
undertow:
io-threads: 16
worker-threads: 256
buffer-size: 1024
direct-buffers: true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册