Chinaunix

标题: 基于node.js构建的Redis-proxy [打印本页]

作者: atrun    时间: 2012-05-10 23:05
标题: 基于node.js构建的Redis-proxy
Why sreeix/redis-proxy?

是基于node.js构建的一个Redis proxy,it's like haproxy except for redis.

Typically for every redis server we setup, we have a backup server setup as a slave of the main server.

If the Active Redis crashes or goes down for maintenance, we want the application to seamlessly use(read/write) data from the backup server. But the problem is once the backup takes over as active it will be out of sync with the original(master) and should become the sale of the current active. This is solved by redis-proxy, which proxies the active redis. It is also smart enough to issue slave of commands to machines that start up and make masters slave of no one.

This reduces the common redis slave master replication dance that needs to be done when bad stuff happens or maintenance of the servers are needed


     Features


  
      https://github.com/sreeix/redis-proxy
作者: moartel    时间: 2012-05-13 10:48
是无缝切换吗?还是有少量数据丢失?
作者: atrun    时间: 2012-05-25 12:38
绝对无缝切换。

我部署了三个Redis节点,使用Redis-proxy.  读写三千多万数据,没发现什么问题。
作者: shaneqi    时间: 2012-06-14 22:58
顶......叹为观止.....




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2