Questions tagged [redis-sentinel]

System for managing redis instances.

Redis sentinel is a system designed to help managing Redis instances. It performs the following three tasks:

  • Monitoring - constantly check if your master and slave instances are working as expected.
  • Notification - can notify the system administrator, or another computer program, via an API, that something is wrong with one of the monitored Redis instances.
  • Automatic failover - If a master is not working as expected, Sentinel can start a failover process where a slave is promoted to master, the other additional slaves are reconfigured to use the new master, and the applications using the Redis server informed about the new address to use when connecting.
327 questions
8
votes
0 answers

Is there a way to achieve Autofailover and autodiscovery of redis nodes with JedisCluster?

I used Jedis Java client for Redis and it is fantastic. I used separately the features for clustering (JedisCluster) and for High-Availability (JedisSentinelPool). Both implementations work like a charm alone, however it doesn't seem to be a way to…
1vand1ng0
  • 1,203
  • 1
  • 16
  • 18
7
votes
1 answer

Docker Swarm Redis and Sentinel with master - slave replication IP resolution client failure

I am running into an issue and I am not sure how to resolve this. My redis sentinel eco system is as follows: 3 sentinel cluster --> Managing 1 master and 2 slaves using docker-compose I have created a docker overlay network for the eco system and…
sharman
  • 515
  • 1
  • 5
  • 18
7
votes
3 answers

Redis sentinel not connect to master: Error: READONLY You can't write against a read only slave?

I have this redis replication with sentinel architect: 5 servers: .1, .2, .3, .4 and .5 .1: nodejs app, redis master, redis sentinel .2: nodejs app, redis slave .3: nodejs app, redis slave .4: redis sentinel .5: redis sentinel Sentinel handle…
Justin
  • 4,400
  • 2
  • 32
  • 36
7
votes
0 answers

Redis HA setup on AWS with sentinels - redis-nodes seen by different sentinels end up on endless loop

Our setup 3x redis sentinels one on each AWS Sydney AZ 2 to 500 redis nodes with a master and a multiple slaves that scales horizontally automatically using AWS Auto-scaling group policies 1x Write ELB that pushes traffic to the master 1x Read ELB…
mjsilva
  • 1,327
  • 3
  • 13
  • 21
6
votes
2 answers

State of Redis on Windows in 2019?

I need to configure Redis in HA mode (in cluster) using Redis Sentinel with two Windows Server 2016. Searching around, there is a lot of material on how to install Redis on Windows and none of them seemed.... right to me. I got to this page which…
João Menighin
  • 3,083
  • 6
  • 38
  • 80
6
votes
1 answer

Cant connect to Sentinel with redis-cli on UbuntuBash

I have installed Ubuntu Bash on Windows 10 PC. After that installed Redis using apt-get install command I could connect to redis using redis-cli command the info showed details #…
Vipresh
  • 1,250
  • 15
  • 31
6
votes
1 answer

Redis sentinel - How to take a server out of loop?

I had following deployment of sentinel - 3 redis instances on different servers, 3 sentinels on each of these servers. Now, I realized that the current master does not have much memory, so I stopped sentinel and redis instance on this particular…
Tarun
  • 152
  • 1
  • 15
6
votes
1 answer

Rails, Redis and Sentinel

I have a Redis cluster of 4 nodes, 1 master and 3 slaves, monitored by Sentinel. Now in rails I need to connect to this cluster, reading from the nearest replica, and writing to the master, the same as I do with MongoDB. Using the redis-rails gem,…
bukk530
  • 1,858
  • 2
  • 20
  • 30
5
votes
0 answers

Connect to redis Sentinel with Python leads to MasterNotFound Error

I have the following setup with Docker-Compose: version: '2' services: redis-sentinel: image: docker.io/bitnami/redis-sentinel:6.2 volumes: - redis-sentinel_data:/bitnami redis: image: docker.io/bitnami/redis:6.2 …
Data Mastery
  • 1,555
  • 4
  • 18
  • 60
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

Redis Sentinel with read from Slaves write to Master

Our current Redis setup is a Web application client using Jedis to directly connect using one JedisPool for writes to a single Redis master and a second JedisPool for reads from a single Redis slave. The slave is setup to replicate the master. We…
ptha
  • 836
  • 1
  • 8
  • 22
5
votes
2 answers

Configure ASP.NET Redis Session State Provider for Sentinel Configuration

I have been trying to get the ASP.NET Redis Session State provider configured in my app for some time now. I was finally able to successfully connect directly to the master and set/get keys thanks to this post: Can't connect to Redis server using…
Chris Bohatka
  • 363
  • 1
  • 4
  • 14
5
votes
2 answers

Redis sentinel local cluster setup in windows

I'm trying to set up a redis-sentinel cluster locally. I'm running Redis-64.2.8.4 on windows . I'd like to set up a master with 2 slaves as that will mirror my live environment. I'm running redis-server.exe sentinel.conf --sentinel With this…
Neil
  • 5,179
  • 8
  • 48
  • 87
4
votes
1 answer

Redis Sentinel: How to refresh master client object when master changes on failover?

I have setup a Redis replica with one master and two slaves with Redis Sentinel monitoring each of the nodes. I'm using redis-py library to communicate with master and slaves. Here is the code that I use to connect with master and slaves: from…
Kaushal28
  • 5,377
  • 5
  • 41
  • 72
4
votes
1 answer

Redis sentinel HA on Kubernetes

I am trying to have 1 redis master with 2 redis replicas tied to a 3 Quorum Sentinel on Kubernetes. I am very new to Kubernetes. My initial plan was to have the master running on a pod tied to 1 Kubernetes SVC and the 2 replicas running on their own…
Kaushik
  • 553
  • 3
  • 11
  • 27
1
2
3
21 22