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

does codis support auto failover? #11

Closed
jinhao opened this issue Nov 9, 2014 · 6 comments
Closed

does codis support auto failover? #11

jinhao opened this issue Nov 9, 2014 · 6 comments

Comments

@jinhao
Copy link

jinhao commented Nov 9, 2014

hi,
if the master instance down, does codis support auto failover, or it just set a master-slave mode, if the master down ,wo need manual switch the slave as master?

@ngaut
Copy link
Contributor

ngaut commented Nov 9, 2014

codis provide restful api to promote slave to master, but it won't do it automatically, you can use your own monitoring system to call restful api :)
Also it's easily to intergrete codis to other system

@jinhao
Copy link
Author

jinhao commented Nov 10, 2014

@ngaut is the slave and the master use the same vip or when promote slave to master it just change the config of the codis-proxy, and the codis-proxy use a node name like twemproxy for consistent hashing.

@ngaut
Copy link
Contributor

ngaut commented Nov 10, 2014

codis doesn't using consistent hashing, which means there will be no cache missing.
client connect to codis-proxy, codis-proxy will do the switching, so master-slave switching is transparent to client

@jsvisa
Copy link

jsvisa commented Dec 25, 2014

@ngaut Hi, I want to use redis-sentinel to monitor codis-server master-slave fallover, here's my strategy: just use redis-sentinel to monitor codis-server, whan a master fails, a slave will be voted to be a master, the strategy is the traditional as redis. But this strategy is not stable as redis, in codis-server's side, the voted codis maybe not the master.

Here is my question, does codis support redis-sentinel for monitoring, if I want to use redis-sentinel, should I rework it hard or not.

@ngaut
Copy link
Contributor

ngaut commented Dec 25, 2014

codis does't support redis-sentinel. and we will implement an HA module this seasons.
thanks

@jsvisa
Copy link

jsvisa commented Dec 25, 2014

@ngaut This is an exciting news, look forward to that day

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