Monday, 15 September 2014

How to manage a situation where designated redis master on a cluster is down on startup -



How to manage a situation where designated redis master on a cluster is down on startup -

as understand if redis run on cluster of machines, there several slaves , 1 master. , slaves can made connect master upon startup command. , sentinels on each machine on cluster connect master find out slaves , switch 1 of them master if current master goes downwards reason.

now, question - how can fail on when designated master downwards when start redis servers on cluster ? slaveof command fail , there not master , hence nil sentinels config info from. how solve problem ? !

so redis cluster still in development meant solve exact problem. http://redis.io/topics/cluster-spec

zookeeper, haproxy , number other tools added setup accomplish automated failover. on own though redis sentinels self manages 1 piece of puzzle.

your application needs update config point new master. need add together failover logic redis connection logic. don't know easy solutions point depends on application written in.

i asked similar question before more java redis/jedis no single point of failure , automated failover

and got info back.

redis cluster-computing failover redis-sentinel

No comments:

Post a Comment