-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cat 的配置文件如何集成到apollo #1608
Comments
@qmwu2000 @youyong205 可以关注一下 默认情况下,如果classpath中cat依赖的话,apollo是会启用cat监控的,也就是说apollo依赖cat,所以如果让cat再依赖apollo获取配置的话,就形成循环依赖了 |
可否添加一个功能,取消apollo自动启动cat监控,可以通过手工调用api启动。主要实现目的是想把cat的服务端的地址也通过配置中心统一管理起来。通过apollo获取到配置后,调用cat-client初始化,然后再开启apollo的cat监控。 |
这个应该是可以的,监控相关的提供了spi扩展,你自己实现一个即可,内部实现可以包apollo中的cat实现,具体参考 https://github.com/ctripcorp/apollo/releases/tag/v0.4.0 |
我看到了实现producerManager = ServiceBootstrap.loadFirst(MessageProducerManager.class); |
@onethin 目前貌似实现上缺了一个排序的能力,所以似乎没法保证,这个后续可能得改一下 |
可以提供cat集成apollo的方法么?
The text was updated successfully, but these errors were encountered: