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

Can redisson java client detect a restart of a failed master-replica pair in a cluster topology?

My Spring boot application uses redisson 3.3.0 to gain access to a redis cluster topology with the following YML configuration: redis: cluster: nodes: ${CLUSTER_HOST}:6379 read-mode: 'MASTER' connections: 125 max_wait_millis:…
JavaSloth
  • 435
  • 1
  • 4
  • 10
0
votes
1 answer

Redis Cluster vs Twemproxy - MOVED responses

I want to use Redis for a particular use case. I am not sure to go with a Redis Cluster or with Twemproxy + Sentinel. I know the Cluster is a winner any day. I am just skeptical due to the MOVED responses. In case of MOVED responses, the client…
Tarun
  • 152
  • 1
  • 15
0
votes
1 answer

Redis Sentinel, Standalone or Cluster, which is best for session?

Which setup is more preferable for session using Redis? Since the session data will result and force all user to session if down, is it good choice to use stand alone? Since this allows quick recovery with minimum resources. Or having cluster will…
gk.
  • 338
  • 5
  • 15
0
votes
0 answers

Redis: Permanent misses keys

The chart below is a Redis Cluster Hit Ratio. For no reason one instance (6394) started missing keys dramatically since a week ago. Redis Cluster Hit Ratio:…
Jirene
  • 151
  • 3
  • 9
0
votes
0 answers

Exception getting Resource from Jedis pool when connecting via Redis Sentinel nodes

I am seeing an error when trying to connect to Redis Sentinel Nodes from Spring boot app. It works fine when I connect directly to Redis Master Node from Spring Boot app without using sentinel nodes. At App Startup I see the below in the…
Good Samartian
  • 103
  • 1
  • 3
  • 8
0
votes
2 answers

Redis cluster on Google Container Engine (GKE - Kubernetes)

I have set-up redis-cluster on Kubernetes (Google Container Engine). Referenced from : https://github.com/zuxqoj/kubernetes-redis-cluster/blob/master/README-using-statefulset.md So the current state is that, we have 6 pods under a single node of…
0
votes
1 answer

Expose every pod in Redis cluster in Kubernetes

I'm trying to setup Redis cluster in Kubernetes. The major requirement is that all of nodes from Redis cluster have to be available from outside of Kubernetes. So clients can connect every node directly. But I got no idea how to configure service…
Shtlzut
  • 2,174
  • 1
  • 16
  • 14
0
votes
1 answer

Redis Cluster minimal configuration

Actually I'm using a configuration of Redis Master-Slaves with HAProxy for Wordpress to have High Avaibility. This configuration is nice and works perfect (I'm able to remove any server to maintenance without downtime). The problem of this…
0
votes
1 answer

Cannot connect to redis cluster using ioredis

Hi I am trying to connect Redis cluster using ioredis node module, my app is getting started and there is no connection error but my data is not published to Redis channel. Below is the code snippet of connection var redis = require("ioredis") …
Anand Jain
  • 603
  • 7
  • 20
0
votes
2 answers

JedisCluster Replication and EVAL

I know that Jedis (and other client libs) can select an appropriate shard to execute the Lua script. However what I cannot find is how the master-slave nodes are used after. Say I have multiple Lua scripts and part of them does writes, another part…
Nestor Sokil
  • 2,162
  • 12
  • 28
0
votes
1 answer

redis-cluster,migrating importing state issue

I Create a redis cluster: M: dbaf0a596c4f5a2f4ac1d9de2ed5c117f201d26d localhost:9501 slots:5461-10922 (5462 slots) master 2 additional replica(s) S: a375ec8221f9872f8f287bca8a67fcef701cef72 localhost:9000 slots: (0 slots) slave replicates…
youngchw
  • 9
  • 3
0
votes
1 answer

when redis get key in slave, why redirect to master?

I wonder read key in Redis Cluster mode. my redis cluster info: 127.0.0.1:7001> cluster nodes 2f255a65c7238134a5b2b84671f1d1af01778178 127.0.0.1:7004@17004 slave 4c1fe92725284ae39f9b538674d9f13ae6d75d66 0 1519807517000 5…
b_dobee
  • 19
  • 1
  • 9
0
votes
1 answer

Add new server to Redis cluster

I've just set up a Redis cluster, which is working fine. The structure is the following: Server 1 | Server 2 | Server 3 Master A | Master B | Master C Slave B | Slave C | Slave A Master A <-> Slave A Master B <-> Slave B Master C <-> Slave C I'm…
Tobias Lorenz
  • 1,426
  • 11
  • 17
0
votes
2 answers

Redis: why MOVED to another master

I've a Redis cluster - 3 masters and 3 slaves. This cluster contains ~300 keys(foo0 - foo300). I understand that each master responsible for certain subset of data and can redirect client to right node with MOVED error. But, If I send request to GET…
c ccx
  • 46
  • 1
  • 10
0
votes
0 answers

Redis hmset, old data overwrite new?

I run two redis commands: A: hmset k1,v1,k2,v2,k3,v3....(hundreds keys) at 11:03:05,450 B: hmset k1,v1.1 at 11:03:05,727 But the final data I get for k1 is v1. I consider there are several possible reasons: clocks on different machines are not…
Mobility
  • 3,117
  • 18
  • 31