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
18
votes
5 answers

Redis command to get all available keys on Redis Cluster?

I am using this redisManager.redisClient.keys('*example*', function (err, keys) { }) But it only gives keys from only one of the redis cluster. How can I get keys from all cluster?
Albin Mathew
  • 604
  • 9
  • 19
14
votes
6 answers

How to solve redis cluster "Waiting for the cluster to join" issue?

I have 3 machines and create 6 nodes for redis cluster, i have created it successfully months ago, but it dropped now, i try my best to fix it, but it not work, so i clean all data and re-create it from zero,when i use following command to create…
aodavid
  • 451
  • 1
  • 4
  • 9
13
votes
3 answers

AWS Redis Cluster - MOVE error

I try to execute a hmset command on AWS Redis Cluster, and I'm getting the following "moved" error. Not sure what is going on. MOVED 7652 10.0.4.210:6379 from rediscluster import StrictRedisCluster startup_nodes = [{"host": self.host, "port":…
user1187968
  • 7,154
  • 16
  • 81
  • 152
12
votes
3 answers

How to delete keys matching a pattern in Redis Cluster

I have tried method in this question, but it does not work since I'm working in cluster mode, and redis told me: (error) CROSSSLOT Keys in request don't hash to the same slot
xingbin
  • 27,410
  • 9
  • 53
  • 103
12
votes
2 answers

StackExchange.Redis: couple of questions about transactions

I've got several question about using transactions from StackExchange.Redis: Is it allowed to execute commands in transaction which could potentially target different nodes in cluster environment? Say, first command's key has {1} hashtag and second…
andreycha
  • 383
  • 4
  • 22
11
votes
0 answers

Picking between Redisson and Lettuce for Redis with clustered-setup

I am considering Lettuce and Redisson java clients for use in my application server (to connect to Redis). I haven't been able to find a proper comparison of the two from people who have tried them both or one of them in a single common place. The…
Shabirmean
  • 2,341
  • 4
  • 21
  • 34
10
votes
2 answers

Redis pub sub max subscribers and publishers

Could anyone tell me whats the maximum number of concurrent channels Redis pub-sub can support?. Is there any cap to the number of subscribers and publishers
J.George
  • 309
  • 1
  • 2
  • 5
10
votes
1 answer

Why can't my Redis Lua script atomically update keys on different Redis Cluster nodes?

I have a Redis Cluster consisting of multiple nodes. I want to update 3 different keys in a single atomic operation. My Lua script is like: local u1 = redis.call('incrby', KEYS[1], ARGV[1]) local u2 = redis.call('incrby', KEYS[2], ARGV[1]) local u3…
J Freebird
  • 3,664
  • 7
  • 46
  • 81
9
votes
0 answers

AttributeError error connecting to redis cluster in Python 3.8

I am attempting to connect to a redis cluster using the RedisCluster module in python 3.8. redis-py-cluster==2.1.0 UPDATE: The connection works now after adding ssl=True. However there is still an AttributeError being thrown which is a concern. Is…
pengz
  • 2,279
  • 3
  • 48
  • 91
9
votes
1 answer

redis cluster in Kubernetes doesn't write nodes.conf file

I'm trying to set up a Redis cluster and I followed this guide here: https://rancher.com/blog/2019/deploying-redis-cluster/ Basically I'm creating a StatefulSet with a replica 6, so that I can have 3 master nodes and 3 slave nodes. After all the…
Deboroh88
  • 391
  • 1
  • 6
  • 20
9
votes
5 answers

Get all keys in Redis cluster

I am using Redis cluster version redis-5.0.5. I want to see all the keys present in my Redis cluster. I know for standalone we use KEYS * to get all the keys. what is the way to see all keys in Redis cluster? $ redis-cli -h hostname -p 90001 -c…
roottraveller
  • 7,942
  • 7
  • 60
  • 65
9
votes
2 answers

Automatically reconnect Storm Topology to Redis Cluster on Redis restart

I have created a Storm topology which connects to Redis Cluster using Jedis library. Storm component always expects that Redis is up and running and only then it connects to Redis and subscribes the events.Currently we use pub-sub strategy of…
Anand Jain
  • 603
  • 7
  • 20
9
votes
1 answer

Using StackExchange.Redis client with Redis cluster

How do I tell StackExchange.Redis (v1.0.481) that it's about to connect to a Redis cluster (v3.2.6, in case it matters), and not just a standalone/replicated instance? When I use the redis-cli for example, I have to pass a -c flag to make it…
user7295971
  • 91
  • 1
  • 1
  • 2
9
votes
2 answers

Should I read from a Redis Cluster slave?

We have a cluster configuration for Redis used as cache. Now due to the normal pattern of write to master and read from slave (with other databases), we are trying to do the same thing with Redis cluster. After some investigation we found that none…
mayank vats
  • 444
  • 2
  • 6
  • 17
9
votes
1 answer

Redis cluster performance - high timeout rate on low load

See strange behavior of redis cluster, which works totally fine on big load and starts to run with 50% timeout rate and unstable response times on low load. We have same patter each day on periods of low load. Any ideas what could cause such a…
Dmitry Spikhalskiy
  • 5,379
  • 1
  • 26
  • 40
1
2 3
46 47