Apollo启动配置排查,超时时间的配置
Apollo启动配置排查
1.排查下来是 本地的服务 apollo 配置fake发布到线上去了。 2.或者是引用的apollo jar包中指向的apollo服务器地址是否正确。
3.超时时间的配置
代码语言:javascript代码运行次数:0运行复制##全套配置,在项目中和eureka中都加上。
feign.client.config.default.connectTimeout = 20000
feign.client.config.default.readTimeout = 20000
hystrixmand.default.execution.isolation.thread.timeoutInMilliseconds = 20000
ribbon.ReadTimeout = 20000
ribbon.ConnectTimeout = 20000
4.#查看项目启动日志:找到Apollo配置文件的路径
代码语言:javascript代码运行次数:0运行复制2024-03-21 16:25:26.184 [localhost-startStop-1] INFO [,] c.c.f.f.i.p.DefaultServerProvider#initialize [line:34] - Loading /opt/settings/server.properties
2024-03-21 16:25:26.185 [localhost-startStop-1] INFO [,] c.c.f.f.i.p.DefaultServerProvider#initEnvType [line:125] - Environment is set to [fat] by property 'env' in server.properties.
2024-03-21 16:25:26.185 [localhost-startStop-1] INFO [,] c.c.f.f.i.p.DefaultServerProvider#initDataCenter [line:155] - Data Center is set to [fat1] by property 'idc' in server.properties.
5.找到配置文件(/opt/settings/server.properties),查看配置项是否存在或者是否最新配置:
代码语言:javascript代码运行次数:0运行复制/opt/data/myApolloId/config-cache
myApolloId+fat1+application.properties
myApolloId+fat1+s1.eureka.properties
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。 原始发表:2024-04-21,如有侵权请联系 cloudcommunity@tencent 删除服务服务器配置日志apollo发布者:admin,转转请注明出处:http://www.yc00.com/web/1754972695a5223280.html
评论列表(0条)