我正在使用twemproxy进行分片。在nutcracker.yml文件中,我已经放置了所有的母版。然后我把这些主机变成了多个奴隶。我正在使用redis-sentinel来监控所有的主机。Redis-sentinel做得很好。当其中一个主机倒下时,它的从属主机就变成了主机。由于twemproxy没有使用新的master进行更新,因此它正在pinging旧的master。有没有办法也更新nutcracker.yml文件中的母版?我正在使用带有Scala Play框架的Redis。
发布于 2013-11-18 10:36:56
redis-twemproxy-agent - https://github.com/Stono/redis-twemproxy-agent可能是一个可行的解决方案。
在README.md中,它声明:
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.发布于 2014-08-12 12:31:16
尝试使用redis-mgr (redis+twemproxy+sentinel deploy/auto-failover/monitor/migrate/rolling-upgrade):
https://stackoverflow.com/questions/20014652
复制相似问题