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
3
votes
0 answers

Expose master to cluster-external addresses when using redis sentinel in kubernetes

I am trying to deploy a Redis sentinel topology into my Kubernetes cluster. I am using the bitnami-redis helm chart which, for non-sentinel deployments, has worked great so far. I am essentially using the example helm values found here, with the…
wakey
  • 2,283
  • 4
  • 31
  • 58
3
votes
2 answers

Problem running Redis master and sentinel using docker

I wanted to have below configuration: 1 master and 2 sentinels on host A. 1 slave and 1 sentinels on host B. So for Master, I have created dockerfile like below: FROM redis COPY redis.conf /etc/redis/redis.conf COPY sentinel.conf…
Rahul
  • 326
  • 2
  • 10
3
votes
1 answer

Best Practice to Upgrade Redis with Sentinels?

I have three redis nodes being watched by 3 sentinels. I've searched around and the documentation seems to be unclear as to how best to upgrade a configuration of this type. I'm currently on version 3.0.6 and I want to upgrade to the latest 5.0.5. I…
numb3rs1x
  • 4,673
  • 5
  • 31
  • 44
3
votes
2 answers

Return old master after redis sentinel failover

I have 3 box setup of redis sentinel: CLIENT (connects to S1) | ↓ +----+ | M1 | us-east-1 | S1 | +----+ | +----+ | +----+ | R2 |----+----| R3 | | S2 | | S3 | +----+ …
Valentin V
  • 24,971
  • 33
  • 103
  • 152
3
votes
1 answer

Redis Sentinel Authentication

I have 3 Servers with Redis and Sentinel Running. All instances have in the configuration requirepass XXX masterauth XXX I can connect with redis-cli to the redis server but if I try to connect to the sentinel I can not…
ghovat
  • 1,033
  • 1
  • 12
  • 38
3
votes
1 answer

Identifying Redis Master using sentinal from nodeJS

I have 2 Redis servers one master and the other slave(replication). Once the Master is down due to some reasons the slave will become Master and it continues to act as Master till something wrong happens to that server. I have a nodeJS server from…
Share_Improve
  • 417
  • 5
  • 15
3
votes
1 answer

Is master always redis instance with smallest priority?

I am running master-slave redis with sentinel, when I kill my master, the lowest priority slave becomes the new master. But when I start my old master again, which has an even lower priority, it does not become the master. Is this behavior…
user695652
  • 4,105
  • 7
  • 40
  • 58
3
votes
3 answers

How do I select the master Redis pod in this Kubernetes example?

Here's the example I have modeled after. In the Readme's "Delete our manual pod" section: The redis sentinels themselves, realize that the master has disappeared from the cluster, and begin the election procedure for selecting a new master. They…
writofmandamus
  • 1,151
  • 1
  • 23
  • 40
3
votes
2 answers

Redis Sentinel for monitoring purposes? Notification script fires off too many times

For my purposes, I only want one instance of redis running and one redis sentinel. I'm running Redis 3.0.6. My sentinel.conf is all defaults except quorum is 1 and the notification script line is uncommented: sentinel notificication-script mymaster…
pyramidface
  • 1,207
  • 2
  • 17
  • 39
3
votes
1 answer

1 Redis sentinel vs multiple redis sentinels?

I've been reading about the use of Redis sentinel for failover. I plan to have 1 master + 1 slave, and turn the slave into a master if the master goes down for more than 1 minute. I know this is 100% possible with Sentinel. However, I've seen…
Henley
  • 21,258
  • 32
  • 119
  • 207
3
votes
1 answer

Redis Sentinel C# Client

I've got 3 redis servers, 1 master & 2 slaves. Currently just the 1 sentinel running, which is monitoring them all well. It will promote whichever instance when required and is really smooth. The problem i currently have is communicating with it…
Dean Thomas
  • 1,096
  • 1
  • 10
  • 25
3
votes
2 answers

To get a faster redis failover

I am working with two redis instances monitored by one sentinel. when the master goes down and there is a "+sdown", I run a notification-script where I promote the slave to master using the following command on its redis-client: SLAVEOF NO ONE . It…
Learner
  • 315
  • 1
  • 5
  • 15
3
votes
2 answers

Redis-Sentinel stuck with slaveof on each node

i'm using redis-sentinel from the 2.8 RC5 of redis to monitor and fail-over my redis nodes. The setup is as follows: Sentinel nodes Server A Server B Server C Redis nodes Server A (Master) Server B (Slave of Server A -- using slaveof in the redis…
Stefan
  • 2,028
  • 2
  • 36
  • 53
2
votes
1 answer

Redis Sentinel on Docker Gives Docker Network IP Addresses

My objective is to set up 3x Redis Server and 3x Redis Sentinel on a single Docker VM using Docker compose and expose each of the Redis Servers and Sentinels to the local network. The static IP of my Docker host is 192.168.2.90. I've given the Redis…
Shaun
  • 667
  • 8
  • 15
2
votes
0 answers

Sentinel container fails with error Unrecognized sentinel configuration statement

I have a k8s deployment for a Redis cluster with 3 Sentinels replicas and 3 slaves. I am facing an error on one of the sentinel pods : *** FATAL CONFIG FILE ERROR (Redis 6.2.3) *** Reading the configuration file, at line 4 >>> 'sentinel monitor…
Golide
  • 835
  • 3
  • 13
  • 36