Questions tagged [redis-cluster]

Redis Cluster provides a way to run a Redis installation where data is automatically sharded across multiple Redis nodes.

Redis Cluster provides a way to run a Redis installation where data is automatically sharded across multiple Redis nodes.

Redis Cluster also provides some degree of availability during partitions, that is in practical terms the ability to continue the operations when some nodes fail or are not able to communicate. However the cluster stops to operate in the event of larger failures (for example when the majority of masters are unavailable).

So in practical terms, what you get with Redis Cluster?

  • The ability to automatically split your dataset among multiple nodes.

  • The ability to continue operations when a subset of the nodes are experiencing failures or are unable to communicate with the rest of the cluster.

Refer:

http://redis.io/topics/cluster-tutorial

694 questions
4
votes
3 answers

How run docker redis in cluster mode?

I started my redis docker container with: docker run --privileged=true -p 6379:6379 --name TestRedis -d redis When I try to use it from Spring Redis in clustered mode, I get the error: Caused by: redis.clients.jedis.exceptions.JedisDataException:…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
4
votes
0 answers

Too many cluster redirections during Redis cluster reshard

Redis version: 3.2.10 ioredis version: 3.1.4 Recently I tested running a resharding operation on a redis cluster whilst the cluster was under quite high load, the clients were using the ioredis node.js library, occasionally on the clients we saw the…
Max Holland
  • 65
  • 1
  • 6
4
votes
1 answer

Cross Data Center Redis Cluster

We are trying to setup a redis cluster in a multi-datacenter environment, with one cluster setup in one datacenter and the other cluster in the other datacenter, in this case, is there a way to setup cross datacenter replication of cluster using…
Premil Jacob
  • 41
  • 1
  • 2
4
votes
4 answers

Cannot add values to Redis cluster - The cluster is down

I have 4 nodes, 3 are master and 1 of them is a slave. I am trying to add a simple string by set foo bar, but whenever i do it, i get this error: (error) CLUSTERDOWN The cluster is down Below is my cluster info 127.0.0.1:7000cluster…
Sahal Tariq
  • 198
  • 1
  • 9
4
votes
1 answer

How to monitor redis clusters

I can monitor single redis instance through redis-stats but if I want to monitor a redis cluster, I need to specify each server name. But if I add more servers to cluster, then I need to add more servers to redis-stats. So is there any utility so…
Girish Gupta
  • 1,241
  • 13
  • 27
4
votes
1 answer

How to use client consistent hashing with Lettuce Redis client

I'm trying to find references how to configure and use Lettuce Redis client with client-side consistent hashing. This approach for a sharding is implemented in ShardedJedis from Jedis client and described in the Redis partitioning…
Dmitry Spikhalskiy
  • 5,379
  • 1
  • 26
  • 40
4
votes
1 answer

redis cluster dbsize shows keys only on that node

I'm connecting to a redis cluster node using redis-cli -c -p 7001 When I issue info command or dbsize command, I get the count of keys that only reside on that node, and not the count of all the keys across all the nodes in my cluster. However,…
sreeraag
  • 513
  • 1
  • 5
  • 19
4
votes
2 answers

Sharding Regular Redis vs Redis Cluster

What are the advantages to using Redis Cluster over just using regular Redis and creating shards? It seems to me like Redis Cluster is more about data safety (having the master-slave architecture account for failures).
Gukki5
  • 497
  • 6
  • 22
4
votes
1 answer

ERR Slot xxx is already busy (Redis::CommandError)

I want setup redis cluster with 6 nodes (node1, node2, node3, node4, node5, node6), which has 3 masters and 3 slaves. Each node has this configuration file redis.conf port 6379 cluster-enabled yes cluster-config-file nodes.conf cluster-node-timeout…
Ramin Darvishov
  • 1,043
  • 1
  • 15
  • 30
4
votes
2 answers

Migrate Redis Data To Cluster

We have a single Redis instance with a good amount of data (over 100GB). We also have an empty Redis Cluster with 6 nodes. What would be the best way to move all that data from the stand-alone instance to the Redis Cluster and make it distribute it…
Artem Kalinchuk
  • 6,502
  • 7
  • 43
  • 57
3
votes
0 answers

How to decide that I required this number of shards in redis cluster?

Is there any criteria or formula to decide that I required this number of shards in redis cluster to handle this amount of data or I have this amount of space available I have gone through documentation but didn't get exact answer
3
votes
0 answers

Issues with setting up redis cluster via docker

I am trying to configure the Redis cluster using the docker image bitnami/redis-cluster. Following is the docker-compose.yml: version: '3.8' services: redis-node-0: image: bitnami/redis-cluster:6.2.7 volumes: -…
Mege Wis
  • 31
  • 2
3
votes
1 answer

Redis cli - KEYS * not showing all keys

I am connecting to an AWS redis cluster using following command redis-cli -c -h host.amazonaws.com -p 6379 I pushed two key "X1" and "X2" into redis cache from a springboot application (API methods are not annotated with @Cacheable) and now when I…
7msseven
  • 45
  • 1
  • 6
3
votes
0 answers

How to choose Multiple Redis Connection based on configuration in Lettuce - Standalone, RedisCluster and Sentinel.?

I have a requirement of supporting the multiple redis connections. The requirement is Why Can't we have a Generic Connection Object like Connection instead of having the StatefulRedisConnection and StatefulRedisClusterConnection ? Why we have…
3
votes
0 answers

Redis data dump from Old Version to new Redis Version

We have several Redis version servers like v3, v4 . I'm trying to migrate data from those servers to one Redis v6 version with indexing. I'm new to Redis migration from one version to new Redis version. How can I do all version data.dump to new…
sanak
  • 61
  • 1