Skip to content
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

mesher如何从配置中心读取数据 #136

Closed
hf1154104163 opened this issue Dec 15, 2020 · 10 comments
Closed

mesher如何从配置中心读取数据 #136

hf1154104163 opened this issue Dec 15, 2020 · 10 comments

Comments

@hf1154104163
Copy link

我写的servicemesh是连接了配置中心了,但如何从配置中心获取下发的配置信息呐?

image

@tianxiaoliang
Copy link
Contributor

@hf1154104163
Copy link
Author

https://go-chassis.readthedocs.io/en/latest/control-plane/servicecomb.html#config-servers
额,不是go-chassis,是servicemesh微服务连接配置中心如何读取数据的

@tianxiaoliang
Copy link
Contributor

https://go-chassis.readthedocs.io/en/latest/control-plane/servicecomb.html#config-servers
额,不是go-chassis,是servicemesh微服务连接配置中心如何读取数据的

配置方式是一样的

@hf1154104163
Copy link
Author

https://go-chassis.readthedocs.io/en/latest/control-plane/servicecomb.html#config-servers
额,不是go-chassis,是servicemesh微服务连接配置中心如何读取数据的

配置方式是一样的

我关注的不是怎么连接配置中心,而是怎么从配置中心获取数据,比如mesher代理的python项目。从那个链接中没有发现相关信息,方便加联系方式交流下不

@tianxiaoliang
Copy link
Contributor

明白你的意思了,你用的哪个配置中心呢

@hf1154104163
Copy link
Author

明白你的意思了,你用的哪个配置中心呢

java chasis提供的服务注册和配置中心,跟servicecomb差不多。我的需求是,由于mesher代理python项目去注册和发现服务,那么python项目又如何从配置中心获取下发的数据,

@tianxiaoliang
Copy link
Contributor

明白你的意思了,你用的哪个配置中心呢

java chasis提供的服务注册和配置中心,跟servicecomb差不多。我的需求是,由于mesher代理python项目去注册和发现服务,那么python项目又如何从配置中心获取下发的数据,

只能自己实现restful API client,这个问题其实很多人都在问,可以贡献给社区最好

@hf1154104163
Copy link
Author

明白你的意思了,你用的哪个配置中心呢

java chasis提供的服务注册和配置中心,跟servicecomb差不多。我的需求是,由于mesher代理python项目去注册和发现服务,那么python项目又如何从配置中心获取下发的数据,

只能自己实现restful API client,这个问题其实很多人都在问,可以贡献给社区最好

是的,我看了一些文档都只是说连接配置中心,但没有给出具体的代码,从配置中心获取所需的数据,这个确实挺费解的,除非项目代码中直接发送请求给配置中心,但这又跟微服务没啥关系了

@tianxiaoliang
Copy link
Contributor

tianxiaoliang commented Dec 16, 2020

https://github.com/apache/servicecomb-kie 社区提供的配置中心是这个,我也推荐你自建和使用。
这是go版的client实现https://github.com/go-chassis/kie-client
你说的配置中心可能是华为云提供的商业版,不该在社区讨论。

@hf1154104163
Copy link
Author

servicemesh调用对方服务,对方服务只能是小写字母,比如obpservice。假如对方服务名是OBPservice, 我这边就会报找不到服务的错误,请问如何解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants