Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zhangjian1949
microservices-platform
提交
0bb2d1e4
microservices-platform
项目概览
zhangjian1949
/
microservices-platform
与 Fork 源项目一致
Fork自
zlt2000 / microservices-platform
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
microservices-platform
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0bb2d1e4
编写于
3月 17, 2019
作者:
zlt2000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zuul 配置优化
上级
16ddb3fc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
14 deletion
+18
-14
zlt-config/src/main/resources/application-dev.properties
zlt-config/src/main/resources/application-dev.properties
+0
-3
zlt-config/src/main/resources/application.properties
zlt-config/src/main/resources/application.properties
+4
-9
zlt-gateway/zuul-gateway/src/main/resources/application.yml
zlt-gateway/zuul-gateway/src/main/resources/application.yml
+14
-0
zlt-gateway/zuul-gateway/src/main/resources/bootstrap.yml
zlt-gateway/zuul-gateway/src/main/resources/bootstrap.yml
+0
-2
未找到文件。
zlt-config/src/main/resources/application-dev.properties
浏览文件 @
0bb2d1e4
########################## 统一变量配置 ##########################
##### 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
...
...
zlt-config/src/main/resources/application.properties
浏览文件 @
0bb2d1e4
...
...
@@ -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
=
15
000
ribbon.ConnectTimeout
=
30
000
# 请求处理的超时时间 默认1秒,单位ms
ribbon.ReadTimeout
=
15
000
ribbon.ReadTimeout
=
30
000
# 对所有操作请求都进行重试,不配置这个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
...
...
zlt-gateway/zuul-gateway/src/main/resources/application.yml
浏览文件 @
0bb2d1e4
...
...
@@ -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
...
...
zlt-gateway/zuul-gateway/src/main/resources/bootstrap.yml
浏览文件 @
0bb2d1e4
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录