Closed shaukei closed 7 months ago
🤖
您好,根据您的描述,我理解您的问题是在Apollo系统中,UAT和FAT环境的配置和管理无法区分开。这可能是由于环境特定的元服务器地址在apollo-env.properties
文件中设置不正确。
在这个文件中,UAT和FAT环境的元服务器地址分别由${uat_meta}
和${fat_meta}
表示。您需要将这些占位符替换为各自环境的实际元服务器地址。
以下是一个可能的修正方法:
local.meta=http://localhost:8080
dev.meta=http://dev.meta.server:8080
fat.meta=http://fat.meta.server:8080
uat.meta=http://uat.meta.server:8080
lpt.meta=http://lpt.meta.server:8080
pro.meta=http://pro.meta.server:8080
在这个例子中,http://fat.meta.server:8080
和http://uat.meta.server:8080
分别是FAT和UAT环境的元服务器地址。您需要将这些替换为您的元服务器的实际地址。
修正地址后,保存文件并重启Apollo系统。系统现在应该能够区分UAT和FAT环境的配置。
另外,我在Apollo的issue中找到了两个类似的已解决问题,可能对您有所帮助:
求教,v2.0.1 ui中有四个环境 dev,fat,uat,pro,但配置文件改一个地方四个都显示同样的? 更新于2022年7月2日 建议的解决方案是:每个环境的apollo-configservice和apollo-admin服务应连接到其自己的apolloconfigdb。
跨k8s健康检查有误,fat和uat环境adminservice与configservice检查Check Health报错,生产没问题 更新于2021年9月29日 建议的解决方案是:在部署环境中修改adminservice和configservice到相应的IP和端口。
如果您还有其他问题或需要进一步的帮助,请随时告诉我。
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
这个可能是你配置错误。
解决了,docker方式运行的,运行参数和配置都没有问题,主的potral db配置信息也没有问题。最后检查其他数据库里面的配置, 在fat环境的 db,config库的serverconfig表, eureka.service.url这里,由于是从uat环境复制过来,没有改这里。导致上面的问题。
将这个url改成fat的eureka对应服务地址,重启服务(不确定需不需要重启,稳妥点,就重启了)就正常了。
这个解决方式希望对后面有同样问题的人有帮助!
谢谢上面的朋友热心回复!
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.
uat和fat环境不能区分开
简洁明了地描述一下bug![image](https://github.com/apolloconfig/apollo/assets/1581783/cbcb8d02-5d49-413e-aedb-214e267491f1)
复现
通过如下步骤可以复现:
期望
简介明了地描述你希望正常情况下应该发生什么
截图
如果可以,附上截图来描述你的问题
额外的细节和日志