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

How to set maximum time for a key to store in Redis cache

How to set maximum time for a key to store in Redis cache? Is there any configurable parameter for that
RoyalTiger
  • 511
  • 2
  • 8
  • 27
0
votes
1 answer

Redis Enterprise Clustering Command Error 'CLUSTER'

We just installed Redis Enterprise and set some configuration on the database. We create a simple script becase on our app the cluster command doesn't work, and that's correct it doesn't work: var RedisClustr = require('redis-clustr'); var redis =…
Ulises
  • 406
  • 7
  • 22
0
votes
0 answers

Why redis.conf is become a directory after Redis docker container created

I'm trying to create Redis cluster and one of its container with command: docker run -d -v cluster-config.conf:/usr/local/etc/redis/redis.conf --name redis-1 redis redis-server /usr/local/etc/redis/redis.conf The same way I create another…
Vadim Yangunaev
  • 1,817
  • 1
  • 18
  • 41
0
votes
1 answer

Compress in Java, decompress in Python - snappy/redis-py-cluster

I am writing cron script in python for a redis cluster and using redis-py-cluster for only reading data from a prod server. A separate Java application is writing to redis cluster with snappy compression and java string codec utf-8. I am able to…
roottraveller
  • 7,942
  • 7
  • 60
  • 65
0
votes
1 answer

Exception in thread "main" redis.clients.jedis.exceptions.JedisNoReachableClusterNodeException: No reachable node in cluster

I am trying to connect to Redis cluster which is installed in a linux box using java to store a JSON string. Code : public JedisCluster getRedisCluster(){ Set jedisClusterNode = new HashSet(); …
lichSkywalker
  • 45
  • 3
  • 10
0
votes
1 answer

jedispool getResource consumes too much latency

I have a function to create a jedispool, final JedisPoolConfig poolConfig = new JedisPoolConfig(); poolConfig.setMaxTotal(25); poolConfig.setMaxIdle(20); poolConfig.setMinIdle(20); poolConfig.setTestOnBorrow(false); …
0
votes
0 answers

Redis: Cluster To Cluster (another) Replication

Is there any mechanism to replicate the whole Redis cluster to another? Example: I have Redis Cluster RC1 which has n master nodes and m slaves. I also have Redis Cluster RC2 with a similar configuration to RC1. Now I want to replicate data…
pkn.47
  • 33
  • 4
0
votes
1 answer

Redis design data structure based on secondary indices

Let's say I have to store the following object in my cache- { student_id: "student123", school_id: "xyz123", class_id: "class123" } How do I design my Redis data structure in a way where I can retrieve the object by any of the ids? I…
BeerBiceps
  • 11
  • 3
0
votes
1 answer

Redis plus plus set is very delayed in loop

I'm trying to set data to Redis Cluster in this code: (I'm using this https://github.com/sewenew/redis-plus-plus#redis-cluster) QByteArray request = m_client.readAll(); qDebug() << "get data from" << bk[static_cast(id) - 1]; QString mess =…
0
votes
2 answers

Pipeline redis supports redis server with cluster mode or not?

As we all know, the pipeline mechanism provides a good performance of the interaction between the redis client and server. Admittedly, it has been applied in many projects. My question is whether the pipeline way supports redis server with cluster…
judika gultom
  • 17
  • 1
  • 1
0
votes
1 answer

redis wiped out the copied rdb file during it starts

We have encountered a weird redis issue. After I upgrade my redis from an old version to a new one, I bring up the redis with clean data. I copied the previous rdb file into the data direcotry I restart the redis to load the data. THen, I figure…
James Xu
  • 115
  • 1
  • 12
0
votes
1 answer

Redis Cluster with custom cluster config

I want to create a redis cluster with only specific redis hosts being master and slave. Also I want to assign from myself which host should be replica of which master. Currently, cluster-create command creates a cluster when given a list of…
Akash
  • 939
  • 1
  • 8
  • 27
0
votes
1 answer

How much is needed to use SSL for aws redis if the redis cluster is in aws private network?

We setup aws redis cluster which can be accessible only from our applications which are deployed in aws in same vpc. So our aws redis cluster is not accessible from outside of aws as well as even not accessible by other aws service who doesn't have…
0
votes
1 answer

Redis sharded cluster on Azure Kubernetes

I have followed these links https://medium.com/zero-to/setup-persistence-redis-cluster-in-kubertenes-7d5b7ffdbd98, https://github.com/sanderploegsma/redis-cluster to build a Redis sharded cluster on AKS, But they are connected by using Pod IP's…
0
votes
0 answers

Redis in Docker across multiple cluster

I am new to Redis. I want to deploy redis cache across multiple clusters in a container. Is there a way to achieve the same? Question - 1. How discovery will happen between redis nodes across clusters. 2. If someone tried and have a simple…
Sum
  • 161
  • 1
  • 2
  • 11