Redis Cluster-生产准备好了吗? [英] Redis Cluster - production ready?

查看:83
本文介绍了Redis Cluster-生产准备好了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读Redis文档,并且我对分区功能最感兴趣。

I was reading Redis documentation, and I am most interested in the partitioning feature.

Redis文档指出以下内容:


数据存储还是缓存?在数据存储或
缓存中使用Redis广告时的分区在概念上是相同的,但是存在巨大差异。
当将Redis用作数据存储时,您需要确保
的给定键始终映射到同一实例,如果Redis用作
的高速缓存(如果给定节点不可用)如果我们
开始使用其他节点,更改键实例映射,这不是什么大问题,因为我们希望
可以提高系统的可用性(即
的功能系统来回复我们的查询)。如果
给定密钥的首选节点不可用,则一致性哈希实现
通常能够切换到其他节点。同样,如果添加一个新节点,则
的一部分新密钥将开始存储在新节点上。这里的主要概念
如下:如果将Redis用作高速缓存
的伸缩,则使用一致的哈希很容易。如果将Redis用作商店,我们需要
来获取键和固定节点之间的映射以及固定数量的
节点。否则,我们需要一个能够在添加或删除节点时在节点之间重新平衡键
的系统,并且目前只有Redis
Cluster能够做到这一点,但是Redis Cluster尚未准备就绪。

Data store or cache? Partitioning when using Redis ad a data store or cache is conceptually the same, however there is a huge difference. While when Redis is used as a data store you need to be sure that a given key always maps to the same instance, when Redis is used as a cache if a given node is unavailable it is not a big problem if we start using a different node, altering the key-instance map as we wish to improve the availability of the system (that is, the ability of the system to reply to our queries). Consistent hashing implementations are often able to switch to other nodes if the preferred node for a given key is not available. Similarly if you add a new node, part of the new keys will start to be stored on the new node. The main concept here is the following: If Redis is used as a cache scaling up and down using consistent hashing is easy. If Redis is used as a store, we need to take the map between keys and nodes fixed, and a fixed number of nodes. Otherwise we need a system that is able to rebalance keys between nodes when we add or remove nodes, and currently only Redis Cluster is able to do this, but Redis Cluster is not production ready.

从最后一句话我了解到Redis Cluster尚未准备就绪。有人知道此文档是否为最新文档,或者Redis Cluster是否已准备好投入生产?

From the last sentence I understand that Redis Cluster is not production ready. Does anyone knows whether this documentation is up to date, or Redis Cluster is already production ready?

推荐答案

[更新] Redis Cluster已于4月1日在 Redis 3.0.0中发布。 2015

[Update] Redis Cluster was released in Redis 3.0.0 on 1 Apr 2015.

Redis集群目前正在积极开发中。请参见 Redis作者:Antirez

Redis cluster is currently in active development. See this article from Redis author: Antirez.


因此,我可以暂停其他增量改进,以专注于Redis Cluster。基本上,我的计划是在不达到Beta版质量的情况下,主要用于群集化,对于Beta版质量,我的意思是,勇敢的用户可能会投入生产。

So I can pause other incremental improvements for a bit to focus on Redis Cluster. Basically my plan is to work mostly to cluster as long as it does not reach beta quality, and for beta quality I mean, something that brave users may put into production.

Redis群集最多支持 〜1000个节点

Redis Cluster will support up to ~1000 nodes.

第一版将具有以下功能(摘自Antirez帖子):

The first release will have the following features (extracted from Antirez post):


  1. 键空间的自动分区。

  2. 热重新分片。

  3. 仅支持单键操作(那样会一直 这样)。

  1. Automatic partition of key space.
  2. Hot resharding.
  3. Only single key operations supported (and it will always be that way).

到目前为止,antirez正在第一个Redis集群客户端上工作( redis-rb- )作为参考实现。

As of today antirez is working on the first Redis cluster client (redis-rb-cluster) in order to be used as a reference implementation.

我将尽快更新此答案

[更新] 2014年3月28日,Redis Cluster已在生产中的大型群集上使用(来源:

[Update] 03/28/2014 Redis Cluster is already used on large cluster in production (source: antirez tweets).

这篇关于Redis Cluster-生产准备好了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆