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

Redis Cluster: No automatic failover for master failure

I am trying to implement a Redis cluster with 6 machine. I have a vagrant cluster of six machines: 192.168.56.101 192.168.56.102 192.168.56.103 192.168.56.104 192.168.56.105 192.168.56.106 all running redis-server I edited /etc/redis/redis.conf…
Nagri
  • 3,008
  • 5
  • 34
  • 63
5
votes
1 answer

Redis Cluster Docker Compose

I'm struggling to create a Docker Compose to create a Redis Cluster. I saw that there is a Redis Cluster image from Bitnami, I tried but it my Spring Boot App cannot connect to it due to the below error: I tried another approach is to create 2…
Nguyễn Đức Tâm
  • 1,017
  • 2
  • 10
  • 24
5
votes
1 answer

Does it require to put load balancer before Redis cluster

I am using Redis Cluster on 3 Linux servers (CentOS 7). I have standard configuration i.e. 6 nodes, 3 master instances, and 3 slave instances (one master have one slave) distributed on these 3 Linux servers. I am using this setup for my web…
Ashish Shukla
  • 1,239
  • 12
  • 23
5
votes
0 answers

Redis Cluster, how to iterate through large set of keys in parallel

I'm trying to modify values in a large Redis Cluster via python StrictRedisCluster, and I am trying to iterate through the keys in parallel. so far I've tried keys() command which times out scan() / scan_iter() which goes through the values in a…
zliu
  • 51
  • 1
5
votes
3 answers

How to create redis-cluster in docker based environment

I want to create Redis cluster in my docker based environment, Any docker base image that supports replication and allow me to create cluster using docker-compose would be helpful.
Anshuman Bardhan
  • 1,986
  • 2
  • 8
  • 10
5
votes
1 answer

Redis advantages of Sentinel and Cluster

I'm planning to create a high available Redis Cluster. After reading many articles about building Redis cluster i'm confused. So what exactly are the advantages of a Redis Sentinel Master1 Slave1 Slave2 Cluster? Is it more reliable as a Redis…
Pegasus1985
  • 126
  • 4
  • 11
5
votes
1 answer

JedisConnectionException - Read timed out error

I'm trying to connect to AWS ElastiCache Redis using Spring Data Redis + Jedis combination. [Redis Cluster enabled, so it has Cluster Config endpoint, with 3 shard - each shard has 1 primary node + 2 replica nodes ] I'm getting Read timed out…
5
votes
1 answer

Unable to access Redis (cluster mode enabled) Cluster's Endpoints

I have 1 VPC - under that 1 EC2 instance ( amazon ami ) and 1 Redis (cluster mode enabled) Cluster with Auth ( password) and with Security Group Open to all IP:Port ( only for testing sake ) - so very simple setup. telnet works at port 6379 from my…
dshiv126
  • 131
  • 1
  • 9
5
votes
1 answer

Get endpoint for Terraform with aws_elasticache_replication_group

I have what I think is a simple Terraform config for AWS ElastiCache with Redis: resource "aws_elasticache_replication_group" "my_replication_group" { replication_group_id = "my-rep-group", replication_group_description = "eln00b" …
el n00b
  • 1,957
  • 7
  • 37
  • 64
5
votes
1 answer

Redis cluster live reshard failure

We're using redis-cluster extensively in our production env. We currently have a 30 node cluster (15 masters, 15 slaves) We're trying to increase the cluster, for that we've created new servers & joined them to the cluster. so far all is well. Next…
5
votes
1 answer

Is there a golang redis client that auto detects new shards for pubsub?

[UPDATE]: Current redis sends every published message to every node in entire cluster: /* ----------------------------------------------------------------------------- * CLUSTER Pub/Sub support * * For now we do very little, just propagating…
Andrew Arrow
  • 4,248
  • 9
  • 53
  • 80
5
votes
2 answers

how to use redis scan in cluster enviroment?

i am useing spring redisTemplate and redis scan it works find in condition of single node. but in cluster enviroment it could not work i can't get a data. is there way to get a scan data in clust enviroment? here is my spring redisTemplate code. …
james
  • 235
  • 2
  • 5
  • 11
5
votes
2 answers

Spring Data Redis and Jedis Compatibility issue

I am trying to Create a JedisConnection factory from a RedisClusterConfiguration(Pseudo code given below ) but I face a compile time error The type redis.clients.jedis.JedisShardInfo cannot be resolved.It is indirectly referenced from a required…
rahul
  • 71
  • 1
  • 1
  • 7
5
votes
0 answers

Starting a Redis cluster with an RDB file

I'm trying to create a Redis cluster using an RDB file taken from a single-instance Redis server. Here is what I've tried: #! /usr/bin/env bash for i in 6000 6001 6002 6003 do redis-server --port $i --cluster-config-file "node-$i.cconf"…
Jay
  • 3,471
  • 4
  • 35
  • 49
5
votes
1 answer

[REDIS]: How to Delete All Keys on Master and Slave(s)?

I'm trying to delete all keys on both redis master and slave, but when I'm executing flushall or flushdb from redis-cli on master it deletes keys only on master, or vice versa if I'm deleting keys on slave it deletes keys only on slave. What command…
Sergei Sirik
  • 1,249
  • 1
  • 13
  • 28
1 2
3
46 47