Closed reignsr closed 2 years ago
问题描述
版本 Apollo-1.4.0
环境 Apollo服务端部署在虚机(centos),客户端应用(springboot)部署在k8s集群,应用启动时和运行中都会出现如下警告信息。
日志: |2021-10-19 14:58:09.544| WARN| main|com.ctrip.framework.apollo.internals.AbstractConfigRepository:27||||||||Sync config failed, will retry. Repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository, reason: Get config services failed from http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: java.io.IOException: Server returned HTTP response code: 503 for URL: http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: Server returned HTTP response code: 503 for URL: http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: Server returned HTTP response code: 503 for URL: http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12]]]| |2021-10-19 14:58:32.589| WARN|Apollo-RemoteConfigLongPollService-1|com.ctrip.framework.apollo.internals.RemoteConfigLongPollService:193||||||||Long polling failed, will retry in 1 seconds. appId: fcc-fses, cluster: default, namespaces: fcc-fses-cnuwx-provider, long polling url: null, reason: Get config services failed from http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: Could not complete get operation [Cause: Read timed out]]| |2021-10-19 14:58:43.586| WARN| main|com.ctrip.framework.apollo.internals.LocalFileConfigRepository:168||||||||Sync config from upstream repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository failed, reason: Get config services failed from http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: Could not complete get operation [Cause: Read timed out]]|
补充说明
问题总结
It looks like 503 is returned by the load balancer, which indicates the config service is probably unhealthy. You may check the cpu/mem/gc stats.
问题定位,操作系统内核参数设置问题,导致 tcp连接 packets reject 和 sockets drop,调整后恢复正常。
问题描述
版本 Apollo-1.4.0
环境 Apollo服务端部署在虚机(centos),客户端应用(springboot)部署在k8s集群,应用启动时和运行中都会出现如下警告信息。
日志: |2021-10-19 14:58:09.544| WARN| main|com.ctrip.framework.apollo.internals.AbstractConfigRepository:27||||||||Sync config failed, will retry. Repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository, reason: Get config services failed from http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: java.io.IOException: Server returned HTTP response code: 503 for URL: http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: Server returned HTTP response code: 503 for URL: http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: Server returned HTTP response code: 503 for URL: http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12]]]| |2021-10-19 14:58:32.589| WARN|Apollo-RemoteConfigLongPollService-1|com.ctrip.framework.apollo.internals.RemoteConfigLongPollService:193||||||||Long polling failed, will retry in 1 seconds. appId: fcc-fses, cluster: default, namespaces: fcc-fses-cnuwx-provider, long polling url: null, reason: Get config services failed from http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: Could not complete get operation [Cause: Read timed out]]| |2021-10-19 14:58:43.586| WARN| main|com.ctrip.framework.apollo.internals.LocalFileConfigRepository:168||||||||Sync config from upstream repository class com.ctrip.framework.apollo.internals.RemoteConfigRepository failed, reason: Get config services failed from http://meta.ts-accs.epay/services/config?appId=fcc-fses&ip=10.34.192.12 [Cause: Could not complete get operation [Cause: Read timed out]]|
补充说明
问题总结