基于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
 

 

 

  • Server Monitoring (to track masters and slaves)
  • Automatic slave upgrade on master failure
  • Connection Pooling
  • Supports Pipelining
  • Honors Existing Master Slave Configurations( ie. if the masters and slaves are  already setup then it will maintain the same configuration, instead of largescale movement of data)
      

      https://github.com/sreeix/redis-proxy

猜你喜欢

转载自atrun.iteye.com/blog/1522478