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

How to setup username and password in redis?

Tying to setup username and password for redis (6). Have seen some documentation that helps setting up a password for redis. Is there a way I can set both the username and password?
2
votes
0 answers

Socket timeout in redis after migrating elastic redis cluster from cache.t2.micro to cache.t2.small

My application immediately started facing socket timeout error after I migrated my elastic cache cluster on aws from cache.t2.micro to cache.t2.small. Which ultimately lead to Could not get a resource from the pool exceptions. This lead to…
2
votes
0 answers

How to connect elastic cache Redis to Nestjs Application

I want to establish a connection with Redis to Nestjs I have searched a lot but I can not figure it out. i establish a connection with my localhost Redis with Nestjs with CacheModule like this CacheModule.register({ store: redisStore, host:…
2
votes
1 answer

Is it ok to use long strings(base64) as keys on Redis and store as its value a long json?

I was wondering if I would have problems if I base64(or other) encode an entire sql query, for example: SELECT t.* FROM (SELECT chat.id as tempId, UuidFromBin(uuid) as id,userFrom,userTo,objDateTime,msg,msgType,idExternal,readed FROM chat WHERE…
Éder Rocha
  • 1,538
  • 11
  • 29
2
votes
0 answers

How do I find the eviction rate of keys in redis?

My redis cluster is configured with maxmem. The eviction policy is allkeys-lru. I want to know how long the keys are lasting on average before they are evicted. Every time a key is evicted, doesn't redis capture how long it lived for? I was…
Trevor Hickey
  • 36,288
  • 32
  • 162
  • 271
2
votes
0 answers

Redis cluster can not auto failed over

I setup my Redis cluster (version 6.2) with 3 master nodes and 3 slave nodes. It works well for normal scenario. However, if I kill one of the master nodes, even if I wait a very long time, the auto-failover does not happen. I use the "cluster…
Danny
  • 31
  • 1
  • 3
2
votes
1 answer

Provide strong consistency in Redis Cluster

I need to load static data one time in redis in the master node and only when the synchronization is finished for all slaves I am going to be able to read. This is because we are going to have a lot reading and a few writing, and the data is not…
Raul Cejas
  • 399
  • 4
  • 13
2
votes
0 answers

socket.io-redis adapter timeout reached while waiting for clients response error

In my project, I'm using (socket.io - 2.3.0) & (socket.io-redis - 5.2.0) for data broadcasting between servers. In that scenario, I'm having the redis timeout issue from time to time, and I'm not sure why. In my server I just run a single node…
Annamalai
  • 109
  • 2
  • 12
2
votes
1 answer

Interpreting missing slot information in redis cluster nodes command

When I run the cluster nodes output and filter out the masters, I see some entries which have slot info and some entries do not have any slot info. For example, has slot info 0-564 slot range and there is no slot info for . What does missing…
Zack
  • 2,078
  • 10
  • 33
  • 58
2
votes
1 answer

What happens when you don't UNWATCH WATCH'd keys in Redis

While poking through Redis I came across the WATCH command -- which is a facet of Redis transactions. The related section on Transactions explains in a bit more detail, how WATCH can work with other Redis concurrency commands. However, one thing…
semore_1267
  • 1,327
  • 2
  • 14
  • 29
2
votes
1 answer

HashSlots in Redis Cluster

Currently I am having the below lua script local job_id = KEYS[1]; local job_body = KEYS[2]; if job_id ==nil or job_id == '' then error('Invalid job id') end; if job_body ==nil or job_body == '' then error('Invalid job body')…
GRS
  • 21
  • 1
2
votes
0 answers

How to create a Pub/Sub module in redis-cluster using Jedis Library 4.0.0

How can I create and test publish/subscribe module using updated Jedis library? Previously I was using jedis library version 3.7.0, from that version my code was something like. Subscriber Process import redis.clients.jedis.JedisCluster; import…
2
votes
1 answer

What's the best way to do listing with searching, sorting and pagination with redis and nodejs?

I have a list of contacts where I am fetching millions of data and showing in a list with pagination, keyword search and column sorting option. I want to implement redis over here to serve the result faster. My question is what's the best way to use…
2
votes
2 answers

Redis Cluster with Lettuce does not update IP list after nodes reboot

I have a Redis Cluster (3 leaders and 3 followers), when I restart all cluster nodes I would like the application to automatically identify that an IP exchange has happened. In the application I'm using spring applying the following…
Yuri.stpsa
  • 126
  • 6
2
votes
1 answer

Configure Spring Data Redis to perform all operations via Elasticache configuration endpoint?

Description Is it possible for Spring Data Redis to use Elasticache's configuration endpoint to perform all cluster operations (i.e., reading, writing, etc.)? Long Description I have a Spring Boot application that uses a Redis cluster as data store.…