Apollo启动配置排查
1.排查下来是 本地的服务 apollo 配置fake发布到线上去了。 2.或者是引用的apollo jar包中指向的apollo服务器地址是否正确。
3.超时时间的配置
代码语言:javascript复制##全套配置,在项目中和eureka中都加上。
feign.client.config.default.connectTimeout = 20000
feign.client.config.default.readTimeout = 20000
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds = 20000
ribbon.ReadTimeout = 20000
ribbon.ConnectTimeout = 20000
4.#查看项目启动日志:找到Apollo配置文件的路径
代码语言:javascript复制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复制/opt/data/myApolloId/config-cache
myApolloId fat1 application.properties
myApolloId fat1 s1.eureka.properties