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
9
votes
1 answer

Connect to ElastiCache cluster via Node.js

I'm confused as to how to connect to AWS's ElastiCache Redis via Node.js. I've successfully managed to connect to the primary host (001) via the node_redis NPM, but I'm unable to use the clustering ability of ioredis because apparently ElastiCache…
9
votes
1 answer

Can the WAIT command provide strong consistency in Redis?

Greetings overflowers, In Redis sentinel/cluster setup, can we use the WAIT command with the total number of slaves to ensure strong consistency across the Redis servers? Why not? Kind regards
geeko
  • 2,649
  • 4
  • 32
  • 59
8
votes
1 answer

Redis Upgrade from 3.0.7 to 5

I have plenty of Sentinel and Cluster servers running 3.0.7 and need to upgrade to 5. I cannot afford downtime. Can someone please advice me how to do it? Some DBs are so big that the servers cannot allocate a new/second instance in case of the best…
Jirene
  • 151
  • 3
  • 9
8
votes
2 answers

Using jedis how to write to a specific slot/node in redis cluster

I'm trying to improve the performance of writing data to redis cluster. We are planning to move from redi-sentinel to cluster mode for scalability. But, the performance of write operations is very less compared to redis-sentinel. We leveraged…
barath
  • 762
  • 1
  • 8
  • 26
8
votes
4 answers

redis-cli redirected to 127.0.0.1

I started Redis cluster on PC1, then connected it on PC2. When needed to redirect to another cluster node, it shows Redirected to slot [7785] located at 127.0.0.1, but should show Redirected to slot [7785] located at [IP of PC1, like 192.168.1.20],…
Robin Chen
  • 81
  • 1
  • 5
7
votes
2 answers

Lettuce can't connect to Redis Cluster using SSL but can connect to same Redis server using SSL by treating it as a Standalone node

I've an Azure Cache for Redis - Premium and Cluster enabled. I've been trying to connect to that Redis using spring-boot-starter-data-redis (spring boot version: 2.3.4.RELEASE, Java version: 11) and using lettuce client but Lettuce is throwing the…
Shubham
  • 2,847
  • 4
  • 24
  • 37
7
votes
1 answer

Lock on redis cluster

I have a Redis cluster of 3 master nodes and each master has corresponding slave nodes. I would like to acquire a lock on the cluster to perform some write operations and then release the lock. From what I've read is - To connect to a cluster we…
7
votes
1 answer

How to have both clustered and non-clustered redis connections in laravel

Background In the past I was able to use a non-clustered redis just fine in my config like so: 'redis' => [ 'default' => [ 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), 'port' …
abbood
  • 23,101
  • 16
  • 132
  • 246
7
votes
1 answer

How to set password for redis cluster with spring boot 2.x

“sorry, my English isn’t very good”. this is my redis config class: @Component @ConfigurationProperties(prefix = "spring.redis.cluster") @Data public class RedisClusterProperties { List nodes; } @Configuration public class RedisConfig…
shane.lea
  • 71
  • 1
  • 1
  • 5
7
votes
2 answers

Setting up redis cluster on Mac OS X via create-cluster script

I want to set-up a redis cluster on Mac via the create-cluster script as mentioned in Cluster tutorial. I am not able to locate the create-cluster script on Mac. I am using redis 3.2.0 installed via brew on Mac OS X 10.11.6 (15G31). Can someone let…
tuk
  • 5,941
  • 14
  • 79
  • 162
7
votes
4 answers

how to delete nodes from redis cluster?

I google it and found two solution: CLUSTER FORGET (http://redis.io/commands/cluster-forget) redis-trib.rb del-node I think CLUSTER FORGET" is the right way to do. But I really want to know the details about redis-trib.rb del-node. Can someone…
bylijinnan
  • 756
  • 3
  • 11
  • 27
6
votes
0 answers

Connection to AWS MemoryDB cluster sometimes fails

We have an application that is using AWS MemoryDB for Redis. We have setup a cluster with one shard and two nodes. One of the nodes (named 0001-001) is a primary read/write while the other one is a read replica (named 0001-002). After deploying the…
6
votes
1 answer

Redlock with redis-ha cluster

I have been trying to configure a distributed RedLock against a redis cluster installed in kubernetes from the helm chart stable/redis-ha. Ideally I would want the cluster to have multiple replicas (primary/secondary replication). I am following the…
TGH
  • 38,769
  • 12
  • 102
  • 135
6
votes
1 answer

io.lettuce.core.RedisCommandTimeoutException: Command timed out

io.lettuce.core.RedisCommandTimeoutException: Command timed out after 10 second(s) at io.lettuce.core.ExceptionFactory.createTimeoutException(ExceptionFactory.java:51) ~[lettuce-core-5.1.6.RELEASE.jar:?] at…
Lakshmi Kanth
  • 101
  • 1
  • 3
6
votes
2 answers

How to do Redis Data encryption?

We can secure the data while its travelling using spiped or stunnel. But How do we do that while the data at rest? What if someone took the whole database? How can we encrypt the persistent data storage? Do we need to do this in application layer?
Sreeraj
  • 2,690
  • 6
  • 26
  • 37
1
2
3
46 47