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

How can I let multiple nodes to store one hash map in Redis

In cluster mode of Redis, is a piece of data with a specific key has to be stored in a specific node, no matter what data structure the it has (e.g. List/Hash)? For example, I have a hash map: HMSET website google www.google.com yahoo…
Menooker
  • 93
  • 1
  • 8
3
votes
2 answers

StackExchange.Redis - writing to a redis cluster points to local IP address

I have a problem writing to a redis cluster. Having this as configuration: static readonly IEnumerable Endpoints = new[] { EndPointCollection.TryParse("10.5.2.146:7000"), EndPointCollection.TryParse("10.5.2.146:7001"), …
Vlad Saftoiu
  • 125
  • 1
  • 8
3
votes
0 answers

How to connect to a remote Redis cluster within another network?

Redis cluster is created with internal ip addresses. M: 24ff344338e4abb4f7f2e888ee9d57843fc46e62 10.0.9.19:6379 slots:5461-10922 (5462 slots) master 1 additional replica(s) S: 9aa005c2d914db12a394af0cb8a0d8e218730099 10.0.9.15:6379 slots:…
benjah1
  • 1,440
  • 1
  • 13
  • 17
3
votes
1 answer

how to migrate huge keys in redis cluster on 3.0.7?

A problem occurred when using cluster on redis version 3.0.7, In our cluster, there exist many huge keys, entry numbers of some keys, whose size is large to 500M bytes, have reached millions. Now we want to scale out the cluster using command…
Papulatus
  • 677
  • 2
  • 8
  • 18
3
votes
0 answers

How can I disable redis cluster replication

We have an application here which uses redis cluster to hold some short lived keys, on the order of 2 seconds. While we want the master to fail over to the slave if something happens to the master, short term loss of this ephemeral data is…
Allan Wax
  • 141
  • 7
3
votes
2 answers

Correct shutdown sequence for Redis cluster

Suppose I have the following Redis replication setup: 3 machines Each machine has a Redis server and a Redis sentinel. One of the servers is set as master, the other two are its slaves. What would be the correct sequence and commands to…
odedia
  • 931
  • 2
  • 11
  • 27
3
votes
1 answer

Upgrade Redis cluster Ubuntu

I have installed redis cluster 3.0.0. But Want to upgrade it to 3.0.7. Can somebody tell me the steps to do it? I don't want to loose any data. And don't want any downtime either.
Ish
  • 2,085
  • 3
  • 21
  • 38
3
votes
1 answer

How to set redis cluster master and slave?

I create a redis cluster use "redis-trib create" commond, I have a few questions about redis-cluster: can redis-trib explicitly set which host is master and which host is slave? or any other way to do so; how to set cluster auth password; when set…
aodavid
  • 451
  • 1
  • 4
  • 9
3
votes
1 answer

Redis Keyspace Notifications - No. of Subscribers vs Contention

I'm trying to implement a Tagging using Redis. This is how it looks like: mykey (my item) mykey:tags (a set with the tags associated to that item) tags:tag1 (a set with references to all items tagged with "tag1") ... I'm planning on using Redis…
Raciel R.
  • 2,136
  • 20
  • 27
3
votes
1 answer

Redis GUI Tool with Cluster Support

Our project is in need of a GUI tool for monitoring and managing a Redis cluster. I could not find one that has support for connecting to a redis cluster. For example, I ran a redis cluster and a redis insight gui locally by docker-compose…
2
votes
0 answers

Is there a way to reuse pre-existing Redis Subscribers

I am trying to reuse pre-existing Redis Subscribers to a certain channel I have in order to limit the number of connections I have with my redis cluster. I want to be able to store something like a Subscriber ID and be able to reuse this subscriber…
yoyo
  • 523
  • 2
  • 6
  • 14
2
votes
1 answer

How to connect to an AWS Redis cluster with ioredis?

I have an AWS Elasticache Redis cluster consisting of two shards, with each having one primary node and one replication node (total of four nodes). How do I instantiate an ioredis Cluster object to connect and use all of these nodes? The ioredis…
user2943799
  • 947
  • 2
  • 13
  • 23
2
votes
1 answer

How to make php sessions highly available in a Kubernetes environment

I am running some highly frequented LAMP stack web applications on Kubernetes. I strive to achieve highest possible availability of these applications. That's why I utilize deployments with several replicas for my apache and php-fpm pods. As…
henriks
  • 21
  • 2
2
votes
1 answer

How to use redis modules such as ft.search in aws elastic cache redis?

We all know that AWS elastic cache provides two caching processes one is MEMECACHED and another one is REDIS . So now I am using REDIS and want to use REDIS search module according to my requirement .How can I use it in AWS? I have created REDIS…
2
votes
1 answer

how does Redis cluster keyspace work? can't recive redis expired event

according to the document (https://redis.io/docs/manual/keyspace-notifications/) Events in a cluster Every node of a Redis cluster generates events about its own subset of the keyspace as described above. However, unlike regular Pub/Sub…
ohj
  • 35
  • 5