免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3407 | 回复: 3
打印 上一主题 下一主题

[Redis] 基于node.js构建的Redis-proxy [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-05-10 23:05 |只看该作者 |倒序浏览
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

论坛徽章:
0
2 [报告]
发表于 2012-05-13 10:48 |只看该作者
是无缝切换吗?还是有少量数据丢失?

论坛徽章:
0
3 [报告]
发表于 2012-05-25 12:38 |只看该作者
绝对无缝切换。

我部署了三个Redis节点,使用Redis-proxy.  读写三千多万数据,没发现什么问题。

论坛徽章:
0
4 [报告]
发表于 2012-06-14 22:58 |只看该作者
顶......叹为观止.....
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP