3 ms·
For the time being, your best bet is probably to rely on the handful of generic failover solution (keepalived, Linux-HA)...they are well documented and robust.
by latch 15y ago
For the time being, your best bet is probably to rely on the handful of generic failover solution (keepalived, Linux-HA)...they are well documented and robust. You can connect to the slaves and issue a SLAVEOF command when your scripts pick a new master.
I know it isn't against the guidelines, but using HN to ask questions which are probably better suited on SO (or, in this case, the very lively redis IRC channel or google group) seems to be increasingly common. Also, doing a simple google search for "Redis automatic failover" returns a number of useful resources.
- modoc 15y agoI appreciate your response, but basically you're saying there's nothing out there that handles the Redis side of failover, and I DO need to write custom scripts that handle all that, right? I can do that, but it seems odd to me that no one has done that and made them available already. The reason I asked here, is I've seen lots of people posting about using Redis here, so I figured there would be some smart people with experience with the product. Googling for that phrase (which I did before I posted here), gives me the same three answers I listed in my initial question, none of which are very satisfactory. High ranking results: http://www.quora.com/How-do-you-implement-automatic-failover-with-Redis http://www.quora.com/How-do-you-implement-automatic-failover... (Wait for Redis Cluster to be done) http://groups.google.com/group/redis-db/browse_thread/thread/497ee813c9960a50 http://groups.google.com/group/redis-db/browse_thread/thread... (Write custom client, and then a link to a script that 404s) http://groups.google.com/group/redis-db/browse_thread/thread/183cc4b033a04828 http://groups.google.com/group/redis-db/browse_thread/thread... (automatic failover is hard, just get paged and do it manually) http://groups.google.com/group/redis-db/browse_thread/thread/4b22d267aee07bf3 http://groups.google.com/group/redis-db/browse_thread/thread... (Write custom stuff and/or wait for Redis Cluster) http://stackoverflow.com/questions/3097324/redis-handling-failover http://stackoverflow.com/questions/3097324/redis-handling-fa... (write a custom client) And so on. Honestly none of that is useful. I can't be the only person out there who needs automatic failover for a production environment:( If I have to be the first person to write those scripts, that's fine, but it seems like someone must have done this before me.