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

redisc.RetryConn returns a null

Golang and redis newbie. I have a redis cluster in amazon with 9 nodes. 3 master and for each master we have 2 slaves. Total nine nodes. Not using RetryConn returns a MOVED node error and using it returns a null. Is it important to give the IP…
LearnGo
  • 105
  • 8
0
votes
1 answer

Redis cluster with Docker Swarm mode

I am a newbie to Docker swarm. I was trying to deploy redis cluster on Docker swarm with compose file. I want the redis cluster use port 6380 so I configured the port and made it mount the redis configure file in compose file. But when I ran docker…
0
votes
1 answer

Redis Cluster - Slave does not FAILOVER

I have created a Redis Cluster as bellow. xxx.xxx.xxx.195:9100 xxx.xxx.xxx.196:9100 xxx.xxx.xxx.197:9100 xxx.xxx.xxx.195:9200 xxx.xxx.xxx.196:9200 xxx.xxx.xxx.197:9200 I have experienced that the CLUSTER is FAILED to recover when I stop…
tiroshanm
  • 123
  • 3
  • 13
0
votes
1 answer

Connect refused for jedis with redis cluster

i'm trying to connect to my redis cluster(on remote server) using jedis(on my local machine connected to same network). My redis cluster is formed by following ips: 10.x.x.x:6380 10.x.x.x:6382 10.x.x.x:6385 My config file for redis instance…
Marek
  • 245
  • 1
  • 4
  • 15
0
votes
0 answers

Error while loading data from mysql to redis cluster

i'm new to both Redis and Go Language, so just bear with me. I'm trying to load some mysql data to the redis cluster. I'm using this code from gitHub:Go program to load mysql data to redis Using this, I'm able to load mysql data to a redis instance…
Marek
  • 245
  • 1
  • 4
  • 15
0
votes
1 answer

Redis 3 Waiting for the cluster to join

So i'm trying to create a cluster using the default redis guide. but when running ruby /usr/share/doc/redis-tools/examples/redis-trib.rb create .... i get stuck forever in "Waiting for the cluster to join". Each redis conf is bound to their…
naT erraT
  • 502
  • 1
  • 5
  • 19
0
votes
1 answer

Now that Redis Cluster comes with sharding, replication and automatic failover, do i still need to use Sentinel for failover handling?

Now that Redis Cluster comes with sharding, replication and automatic failover, do i still need to use Sentinel for failover handling ?
Aryan Singh
  • 87
  • 2
  • 12
0
votes
0 answers

Sync two instance of Redis server

I have 2 instance of redis server, each instance is in different server. Every instance is connected to an web application. When I login to First application, it will store a session to redis in its server. I want to use this session in second…
Wisnu Wardoyo
  • 25
  • 1
  • 1
  • 7
0
votes
1 answer

Redis Cluster: Is it possible to obtain one hash slot from different keys?

As I know from Redis cluster tutorial, cluster has only 16384 slots (0 - 16383). The hashslots are calculated by following command: CRC16 (KEY) mod 16384. So for example CRC16 of some key equals 16385 and hash slot will be 1. For another key CRC16…
Oleksii
  • 41
  • 4
0
votes
1 answer

Redis instantaneous_ops_per_sec higher than actual throughput

We are using Redis as a Queue which has on an average about ~3k rps. But when we check the instantaneous_ops_per_sec, this value consistently reports higher than expected, by about 20%, in this case, reports ~4k ops per sec. To verify this, I have…
sreeraag
  • 513
  • 1
  • 5
  • 19
0
votes
2 answers

How to store data in different nodes in a redis cluster using hset? eg. hset user name1 aa name2 bb

I am using redis to store some key/value(s) using HSET. Here is an example command I am using. hset user name1 aa hset user name2 bb ... I'll try redis cluster, how to keep data storing in different nodes?
kaka123
  • 3
  • 4
0
votes
1 answer

Redis async call by c#, using "DatabaseAsync" makes response slower when there are 400-500 requests per second

when I use: `public call(Func> func){ var task=func(redisInstance); task.wait(); return task.Result; }` call: call(client => redisInstance.SetMembersAsync(setName)) It works Fine, but when there are many requests 'CPU'…
vakho papidze
  • 465
  • 3
  • 12
0
votes
1 answer

How to set up Redis Cluster Slave only for backup?

I'd like to add a new slave to the Redis Cluster, which has 3 masters and 3 slaves currently. But the new slave it's only for bgsave, it can't be master if the master fail-over, can I do that?
Cynial
  • 680
  • 8
  • 23
0
votes
1 answer

get "keypattern*" doesn't work in Redis Cluster

In a Redis environment , we are familiar with commands like :keys * :get pattern But these dont work easily in Cluster. I found a workaround for "keys *" ( although its slow). But I am stuck with "get pattern" The reason , why it doesnt work, as…
user3123372
  • 704
  • 1
  • 10
  • 26
0
votes
1 answer

Predis using PHP: How to get which Redis node ( host ) that holds a particular key?

I'm using Redis cluster using Predis in PHP, I'm doing simple $image_urls = $client->get($key) Now I want to get the host address where Redis found the key-value pair because it also contains local images, I need to get the full link of those…