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

集群环境下的多host连接设置 #6

Open
perfiffer opened this issue Mar 13, 2020 · 5 comments
Open

集群环境下的多host连接设置 #6

perfiffer opened this issue Mar 13, 2020 · 5 comments

Comments

@perfiffer
Copy link

集群环境下如何设置多host连接,还是只连接master,由master分发到不同的slave。

@eulery
Copy link
Owner

eulery commented Mar 16, 2020

我记得opentsdb本身并没有集群方案。我公司是部署了多个opentsdb,后面是同一个hbase集群,然后最前面通过nginx作为负载均衡

@perfiffer
Copy link
Author

所以,负载均衡是通过nginx做的,代码里面直接连接nginx的地址,是吗?

@wanzixin
Copy link

@eulery 你好,ip地址+端口号正常使用没问题,但我现在有域名,应该怎么使用呢

@eulery
Copy link
Owner

eulery commented Mar 17, 2022

@wanzixin 你是说你的域名映射了你的opentsdb的ip和端口吗,那ip填域名,端口一般默认80就好了

@wanzixin
Copy link

@eulery 但我看源码里好像是拼接起来的,用80端口可以吗

image

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