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

consul 集群时,yml文件如何配置? #7

Open
jiangcaijun opened this issue Apr 1, 2018 · 4 comments
Open

consul 集群时,yml文件如何配置? #7

jiangcaijun opened this issue Apr 1, 2018 · 4 comments

Comments

@jiangcaijun
Copy link

如题,

spring:
  cloud:
    consul:
      discovery:
        prefer-ip-address: true
      host: 127.0.0.1
      port: 8500

当consul 为集群时,yml文件如何配置?看目前这个配置文件,只支持单点的

求教,谢谢

@chlin7
Copy link

chlin7 commented Oct 10, 2018

同问,谢谢

@Killua67
Copy link

同问。。。

@Killua67
Copy link

Killua67 commented Dec 5, 2018

找到答案了。 其实设置一个就可以了,连接集群时会把其他节点信息也获取

@jiangcaijun
Copy link
Author

找到答案了。 其实设置一个就可以了,连接集群时会把其他节点信息也获取

这样的话,你链接该节点的时候,即使可以路由到整个集群的信息,但是,一旦该被链接的节点宕了,会不会导致整体不可用。而且,阿里的nacos都已经开源了,可以考虑转过去了,哈哈哈霍霍

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

3 participants