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
0 answers

Redis occupies more memory

OS: RHEL 7.6 Cluster set up: Single node - 6 instances of redis - 3 master and 3 slaves. 16384 slots shared between three masters. Sample data: smembers 201904138 1) "0" 2) "1" 3) "2" 4) "3" 5) "4" Each set contains 5 ids. I have such 2.49Million…
Gibbs
  • 21,904
  • 13
  • 74
  • 138
0
votes
0 answers

Redis cluster performing frequest failover between master and slave

WE have a redis cluster with 4 master and 4 slave. The 4 master are on one physical host and the slaves are on other physical host. WE have observed a frequest auto failvoer happening between the master and slave even though the servers are up and…
Parth Gandhi
  • 311
  • 8
  • 16
0
votes
1 answer

cross cluster replication in Redis

I have 3 Redis clusters each with 3 master nodes and 3 slave nodes. I want to make one of clusters as the primary cluster and the remaining two as the secondary cluster meaning data from the slave/master nodes of the primary cluster will be…
nipun510
  • 27
  • 6
0
votes
0 answers

Is there an alternative to skip the election process of a slave in a Redis cluster, if there is only one slave for a master?

I have set up a Redis cluster with 4 masters and 4 slaves with the following node information: 127.0.0.1:8001> cluster nodes 88d364e0b20e6ec6a471ec6f12d41b82b5f5eab5 127.0.0.1:8009@18009 master - 0 1553593755000 51 connected 0-1165 5461-6627…
user11264133
0
votes
1 answer

interacting with redis-client pod on kubernetes

I'm having a Redis cluster on Kubernetes. I need to interact with one of the redis-client pods, mainly in order to delete keys from time to time. The way I'm currently doing it is: Tunnel Kubernetes dashobard to localhost:8081 From the dashboard,…
Noam
  • 1,640
  • 4
  • 26
  • 55
0
votes
1 answer

Redis Cluster Nodes disconnected after system restart (Windows)

Redis n00b here. I'm using Redis locally on Windows to test code before pushing to my server. I used this tutorial to set it up: https://dingyuliang.me/redis-3-2-create-cluster-windows/ Before "Map slave node to master node" I ran the "cluster reset…
user1552075
0
votes
1 answer

Why Redis Client Use Multiple Address in ClusterMode?

Why Redis client use multiple address in cluster-mode for create connection? is this to switch between addresses when one of them has failed? Thanks.
AmirSo
  • 49
  • 1
  • 7
0
votes
1 answer

Migration of data from slave to master in Redis Cluster

I'm currently exploring Redis cluster. I've started 6 instances on 3 physical servers(3 master and 3 slaves) with persistence enabled. I've noticed that when I kill one of the master instances then it's slave is promoted to master after some time.…
Vishal Sharma
  • 1,670
  • 20
  • 55
0
votes
1 answer

How can cluster redis over ip on networks

I'm setting up redis cluster over local network, but I can't! I've tried in my local 127.0.0.1) and work well! But over network forexample 192.168.30. not work redis.conf port 7000 cluster-enabled yes cluster-config-file…
Hamed Zarei
  • 21
  • 1
  • 5
0
votes
2 answers

How to reconnect Redis cluster nodes?

I have a Redis cluster of 6 nodes, running in my Kubernetes cluster as a stateful set. Since it was for testing and not yet on production, all of the Redis nodes were on the same machine. Of course, the machine failed, and all of Redis' nodes…
Yuval
  • 764
  • 1
  • 9
  • 23
0
votes
1 answer

How do I distribute data into multiple nodes of redis cluster?

I have large number of key-value pairs of different types to be stored in Redis cache. Currently I use a single Redis node. When my app server starts, it reads a lot of this data in bulk (using mget) to cache it in memory. To scale up Redis further,…
0
votes
1 answer

Lua script on Redis Cluster

I have a Redis Cluster and I would like to execute a LUA script on a target node. When I do that I receive an error from Redis Cluster that say that keys must be on the same SLOT, but the script executes two commands on only 1 key. if…
Davide Cerbo
  • 363
  • 3
  • 10
0
votes
1 answer

Redis - Get total dataset size in a cluster

When a Redis instance is setup and running, the dataset size (in bytes) can be retrieved from output of the below command by looking at used_memory_dataset field. ./redis-cli -h -p info However, when I have multiple instances…
pree
  • 2,297
  • 6
  • 37
  • 55
0
votes
0 answers

ElastiCache - Redis Cluster mode enabled fails to write data in-between

I am using a redis cluster of node type m5.4x large with 1 node , in-order to cache some results. The writes to this redis node is very frequent. And I could see that intermittently the writes to cluster fails. Below is the stack trace we see in…
0
votes
1 answer

Automatic Failover to Promoted Redis Slave using Redis Cluster

Configuration: three redis cluster partitions across three sets of one master and one slave. When a Master goes down, Lettuce immediately detects the outage and begins retrying. However, Lettuce does not detect that the associated slave has promoted…
HarleyDave
  • 77
  • 1
  • 3