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

Redis sentinel failover

I created a learning project using Spring Data Redis, bitnami/redis and bitnami/redis-sentinel images. The Docker Compose file is here. The deployment command is docker-compose -f redis-sentinel.yaml up --scale redis-sentinel=3 --scale…
Abhijit Sarkar
  • 21,927
  • 20
  • 110
  • 219
0
votes
1 answer

Why don't sentinels subscribe channel "__sentinel__:hello" in sentinelReconnectInstance

When looking into Redis's source code, I find when sentinelRedisInstance is SRI_SENTINEL, sentinelReconnectInstance will not initialize its link->pc and will not subscribe channel "__sentinel__:hello", as the following code shows. void…
calvin
  • 2,125
  • 2
  • 21
  • 38
0
votes
0 answers

How to connect with Delphi to redis-sentinel

I want to build a high available Redis datastore which I'd configure with the Redis-Sentinel. In order to Connect to this Sentinel with a Delphi Redis Client, how will it be done? As the Documentation of Redis tells, it is required that the used…
ETfraXoR
  • 43
  • 7
0
votes
1 answer

How to get a Redis sentinel to forget a master?

I'm having no end of issues with my Redis instances - masters, slaves (old install) and sentinels. Part of the issue is that my Redis Masters and Slave are running a windows 3.0.2 version I can not do anything about. I also do not have access to the…
Spike
  • 33
  • 1
  • 7
0
votes
1 answer

How to install python on a docker container

I have created a docker-compose yml file to run a cron-job in a docker container. The cron-job which will run inside the docker container has to run a python script and connect to mysql an redis through redis-sentinel. Cron-job need python and…
Anshul Sharma
  • 1,018
  • 3
  • 17
  • 39
0
votes
2 answers

It is possible for only the Redis master instances to handle all reads and writes, and for the slaves to be used only for failover?

My work system consists of Spring web applications and it uses Redis as a transaction counter and it conditionally blocks transaction requests. The transaction is as follows: Check whether or not data exists. (HGET) If it doesn't, saves new one…
ParkCheolu
  • 1,175
  • 2
  • 14
  • 30
0
votes
1 answer

How to set database number for redis, when using redis sentinel

I have a redis cluster of 1 master, 1 slave and 3 redis sentinel and springboot application connecting to redis through sentinel. Application is able to talk to redis through redis sentinel. as we know by default redis instance has 16 databases…
Anshul Sharma
  • 1,018
  • 3
  • 17
  • 39
0
votes
0 answers

Master turning into slave after redis sentinel failover

I am trying out redis master slave replication using sentinels. I have 1 master and 2 slaves and 3 sentinels. All running as different pods. My issue is: 1) When I delete the master pod, one of the slaves turns to master. 2) Ideally, there should…
Bhargav Behara
  • 285
  • 1
  • 4
  • 10
0
votes
1 answer

Does Redis supports databases in sentinel setup with multiple nodes?

Redis by default have 16 databases that can be selected by using SELECT command. But as per the docs, https://redis.io/commands/select, When using Redis Cluster, the SELECT command cannot be used, since Redis Cluster only supports database…
Here_2_learn
  • 5,013
  • 15
  • 50
  • 68
0
votes
1 answer

Not able to connect to slave machine in case of master is down in redis sentinel configuration, all are running in Docker container

I have 1 master(6379), 1 slave(6380), and 3 sentinels(26379, 26380, 26381) running on docker container master and slave are connected and up even sentinels are giving right information about master-slave. When I do my query with master and slave…
Anshul Sharma
  • 1,018
  • 3
  • 17
  • 39
0
votes
2 answers

Not able to start Redis Sentinel Container in Docker

I am trying to setup Redis sentinel on docker, but sentinel container is not starting. I have one Master and one Slave with one Sentinel. I am using ec2 ubuntu instance (t2 micro), where i have installed docker. This is docker-compose.yaml version:…
Kuldeep
  • 599
  • 11
  • 28
0
votes
1 answer

Redis Sentinel Slave SDOWN is set to True

I wrote a monitoring program to monitor the health of my Redis Sentinel HA cluster and it flagged that one slave is missing, node 10.10.10.30. After some debugging it turns out that slaves who are in sdown state true are filtered out. My system…
Amro Younes
  • 1,261
  • 2
  • 16
  • 34
0
votes
1 answer

Redis sentinel with multilevel replicas

I am using Sentinel as a high availability solution for redis. I have a problem. In consideration of reducing the replication pressure of the master, our redis instances are multi-level, as follow: In the introduction of the sentinel, I…
0
votes
1 answer

Flower fails to monitor Celery queues that are using Redis Sentinel as a broker instead of just Redis

To improve resiliency, I converted my standalone redis deployment to a cluster of three Redis sentinels. I was able to connect Celery to the Redis Sentinel setup by modifying my Celery config to include BROKER_URL =…
Amro Younes
  • 1,261
  • 2
  • 16
  • 34
0
votes
1 answer

How can I create a service name and password in redis-sentinel

I am getting this error when I run celery beat -S redbeat.RedBeatScheduler. beat raised exception : ConnectionError('Error -2 connecting to redis-sentinel:26379. Name or service not known.',) How can I create a service_name and password in…
newUser
  • 386
  • 5
  • 17