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

动态增加节点和一个nutcracker链接多个sentinel #10

Open
laohanlinux opened this issue Dec 24, 2014 · 7 comments
Open

动态增加节点和一个nutcracker链接多个sentinel #10

laohanlinux opened this issue Dec 24, 2014 · 7 comments

Comments

@laohanlinux
Copy link

我这边已经配置了server1和server2,我想动态增加server3??
增加后,数据会迁移到server3吗??
nutcracker可以链接到多个sentinel上吗???

@andyqzb
Copy link
Contributor

andyqzb commented Dec 25, 2014

数据不会自动迁移,目前nutcranker只能连接一个sentinel地址,可以在多个sentinel前面配置一个lvs

@tobegit3hub
Copy link

sentinel本身支持gossip协议,只要连任意一个都可以,bdrp只允许配置一个不合理,这是新的单点

@andyqzb
Copy link
Contributor

andyqzb commented Apr 1, 2015

@tobegit3hub 在百度内部,是通过类似lvs的服务访问sentinel的,所以,这里不会存在单点问题。这点设计上确实考虑的不够周全。

@tobegit3hub
Copy link

lvs确实可以达到一样的效果,居然这样设计的也没问题,不过最好也能支持连多个的 😃

@andyqzb
Copy link
Contributor

andyqzb commented Apr 1, 2015

@tobegit3hub 最近给twemproxy推了一个patch,是可以配置多个sentinel的,sentinel配置是在配置文件里面。twitter/twemproxy#324 这个patch是我工作之余做的,没有经过线上服务实际考验,所以,可靠性有待验证。

@axot
Copy link

axot commented Feb 5, 2016

@andyqzb 几个关于 twitter/twemproxy#324 的问题

  1. sentinels列表中可以只写sentinel master的ip吗?
  2. twemproxy一般该如何做Redundancy, 服务器全部都在AWS上面很难做LVS

@andyqzb
Copy link
Contributor

andyqzb commented Feb 9, 2016

@axot sentinel master?不太懂你的意思。只要配置任何一个sentinel地址即可,twemproxy只是从sentinel获取最新的redis master地址,以及订阅地址变更。
关于问题2,百度内部是通过配置管理服务或者一个类似lvs的服务做得

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

4 participants