Apollo啟動配置排查
1.排查下來是 本地的服務 apollo 配置fake釋出到線上去了。
2.或者是引用的apollo jar包中指向的apollo伺服器地址是否正確。
3.超時時間的配置
##全套配置,在專案中和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配置檔案的路徑
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),檢視配置項是否存在或者是否最新配置:
/opt/data/myApolloId/config-cache myApolloId+fat1+application.properties myApolloId+fat1+s1.eureka.properties