首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >nutcracker.yml关机后如何替换主机(twemproxy,redis)?

nutcracker.yml关机后如何替换主机(twemproxy,redis)?
EN

Stack Overflow用户
提问于 2013-11-16 12:23:47
回答 2查看 1.2K关注 0票数 1

我正在使用twemproxy进行分片。在nutcracker.yml文件中,我已经放置了所有的母版。然后我把这些主机变成了多个奴隶。我正在使用redis-sentinel来监控所有的主机。Redis-sentinel做得很好。当其中一个主机倒下时,它的从属主机就变成了主机。由于twemproxy没有使用新的master进行更新,因此它正在pinging旧的master。有没有办法也更新nutcracker.yml文件中的母版?我正在使用带有Scala Play框架的Redis。

EN

回答 2

Stack Overflow用户

发布于 2013-11-18 10:36:56

redis-twemproxy-agent - https://github.com/Stono/redis-twemproxy-agent可能是一个可行的解决方案。

在README.md中,它声明:

代码语言:javascript
复制
A simple nodejs application which will connect to Redis-Sentinel and monitor for the master-change event. It will then update TwemProxy (nutcracker) and restart it.

The basic idea behind it, is so that you have redundancy in your redis shards, when your master dies, a slave is promoted to Master by Redis Sentinel, and then this agent updates your TwemProxy config to point to the new master.
票数 3
EN

Stack Overflow用户

发布于 2014-08-12 12:31:16

尝试使用redis-mgr (redis+twemproxy+sentinel deploy/auto-failover/monitor/migrate/rolling-upgrade):

https://github.com/idning/redis-mgr

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20014652

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档