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
1
vote
1 answer

Master to Master replication in Redis Sentinel

We are establishing a Redis Sentinel cluster in two zones. Each zone will have a master node with two slave nodes. We are looking for master-to-master replication between these zones (not in real time though). According to my understanding, Redis…
pranav
  • 421
  • 1
  • 11
  • 27
1
vote
1 answer

Bitnami Redis Sentinel & Sidekiq on Kubernetes

So right now we are trying to get a Bitnami Redis Sentinel cluster working, together with our Rails app + Sidekiq. We tried different things, but it's not really clear to us, how we should specify the sentinels for Sidekiq (crutial part is here,…
BvuRVKyUVlViVIc7
  • 11,641
  • 9
  • 59
  • 111
1
vote
1 answer

Which Redis sentinel server should I connect to while connecting to Redis?

I am new to Redis and Kubernetes and have a Kubernetes cluster setup of 3 Redis and 3 Sentinel kubernetes % kubectl -n redis get pods NAME READY STATUS RESTARTS AGE redis-0 1/1 Running 0 7d16h redis-1 1/1 …
1
vote
0 answers

Redis : (error) ERR unknown command 'auth'

when i started a sentinel server and here is my sentinel.config file port 26379 # Generated by CONFIG REWRITE protected-mode yes sentinel myid 1bd376eb47dc5e1cd65987bff12639e6a98c6152 sentinel monitor mymaster 127.0.0.1 6379 2 #sentinel auth-pass…
威揚葉
  • 11
  • 3
1
vote
0 answers

Redis Sentinel is not switching to new master

I want to implement redis-sentinel. Following code snippet shows what I have done: import redis from redis.sentinel import Sentinel from .config import redis_config redis_client = None def create_redis_client(): global redis_client …
hafiz031
  • 2,236
  • 3
  • 26
  • 48
1
vote
1 answer

Redis Sentinel doesn't auto discover new slave instances

I've deployed the redis helm chart on k8s with Sentinel enabled. I've set up the Master-Replicas with Sentinel topology, it means one master and two slaves. Each pod is running both the redis and sentinel container successfully: NAME …
Martín C.
  • 33
  • 5
1
vote
0 answers

Is there any support in spring data Redis to pass sentinel username for ACL feature?

Redis is running in HA mode with Sentinel setup. Redis and Sentinel instances are running with respective ACL user and the default user is turned off. spring data redis 2.5.4 allow us to pass the below details in sentinel mode: 1.redis username …
1
vote
0 answers

Redis with 3 node cluster is keep on switching master

My redis cluster keep on switching the master. Below are the logs. 4580:X 26 Aug 2021 20:51:57.673 # +switch-master mymaster IP1 6379 IP3 6379 4580:X 26 Aug 2021 20:51:57.673 * +slave slave IP2:6379 IP2 6379 @ mymaster IP3 6379 4580:X 26 Aug 2021…
Nitesh Kumar
  • 875
  • 4
  • 20
  • 39
1
vote
0 answers

StackExchange.Redis Sentinel operations

I'm building out tools to help manage/test our redis configuration. I have 5 redis instances (1 master / 4 replicas). 3 of them have sentinel running on them. My redis options only defines the 3 sentinel hosts/ports. When connection is requested it…
gilm0079
  • 595
  • 1
  • 4
  • 18
1
vote
1 answer

How to use sentinel to know you have gone offline?

I have a redis sentinel cluster configured with 5 nodes with the following IPs: 192.168.1.1 192.168.1.2 192.168.1.3 192.168.1.4 192.168.1.5 I wish to find a simple way to determine if any server has gone offline from its own point of view. On…
Harry Boy
  • 4,159
  • 17
  • 71
  • 122
1
vote
0 answers

Spring Boot Application is not starting with Invalid Redis Sentinel Property Error

I am trying to start my application with Redis Sentinel in my local System. When I start the application its being stopped with below error. I have started redis in my windows machine with master on 6379 port, replica on 6380 and 6381 ports and…
1
vote
2 answers

How to set password for redis-server

I have a 3-instance high availability redis deployed. On each server I have redis and sentinel installed. I am trying to set a password so that it requests it at the moment of entering with the command "redis-cli". I am modifying the value of the…
user14867757
1
vote
0 answers

Average_ttl is 0 on one of the Redis cluster nodes

I have a Drupal cluster of 3 servers that are using HAproxy (TCP) to handle communication with a Redis cluster of 3 nodes (used for caching) on which the sentinel service is active as well. The Redis cluster has 1 main (master) node and 2 secondary…
1
vote
1 answer

Redis Config Files - Config Write

I have 5 redis server 2 of them run redis both Master and Slave roles ( looks like redis.conf is not setup manually but via some sort of process cause it has the following line at the bottom: Generated by CONFIG REWRITE ) From time to time I…
pedro
  • 157
  • 1
  • 12
1
vote
1 answer

Why when the master node of redis sentinel setup go down one of the slave doesn't become master?

when the master goes down the other nodes stays slaves and I am not able to write. I am using HAProxy to connect to the redis nodes, I thought one of the node from the slves will become master and hte web app will be able to write to it, but the…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197