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

Can we mark a slave as unpromotable by redis-sentinel?

We have a redis cluster with a master and a slave managed by three sentinel processes, and an additional remote slave, hosted in a different datacenter, for transparent failover and data preservation in the case that something bad happens to the…
Patrick Thill
  • 225
  • 2
  • 10
2
votes
3 answers

where to run redis -sentinel

To manage the master-slave failover, redis has sentinel in hand. Two servers I am using. One for the Master server and the other for the slave. Both master and slave are remote server and running as a daemon. How to configure the sentinel with…
jerry
  • 745
  • 6
  • 20
2
votes
4 answers

Issue with resurrecting master in redis sentinel client

I started to work on redis with master slave set up. Master and slave is set in same machine with different port. For handling Master/slave fail over, seems redis had sentinel. I am trying to implement the sentinel. My redis.conf for Master: bind…
jerry
  • 745
  • 6
  • 20
2
votes
0 answers

Booksleeve (1.3.39) + Redis 2.6.16 + Sentinel: The connection has been closed (Error)

I am getting some random disconnects from Booksleeve when deployed in the production environment. I have run tests on my machine and I can not seem to reproduce the errors. I am not sure what to check so I decided to post here. My set-up: 2 x Redis…
John
  • 634
  • 8
  • 17
2
votes
1 answer

How to integrate redis-sentinel-client and socket.io on node.js?

How can I integrate socket.io, and a master-slave Redis configuration with automatic failover?
schwerwolf
  • 250
  • 1
  • 7
  • 20
1
vote
0 answers

Setting value in redis does not work - stuck on instruction

I want to implement a simple code, to save and retrieve some data from a local redis database running in docker. My code to get and set the data is: package main import ( "context" "fmt" "time" _ "github.com/lib/pq" …
1
vote
0 answers

NOAUTH HELLO must be called with the client already authenticated

We cannot connect to the master via sentinel. Error: Caused by: io.lettuce.core.RedisCommandExecutionException: NOAUTH HELLO must be called with the client already authenticated, otherwise the HELLO AUTH option can be used to authenticate the…
bogizzla
  • 11
  • 1
1
vote
0 answers

ReadTimeout value used in the FailoverOptions for redis.NewFailoverClient to connect to a redis sentinel doesn't seem to have an effect. Why?

Expected Behavior If the read operation is taking more time than the ReadTimeout value, it should return an error. Current Behavior ReadTimeout exceeds, but no error is returned. Steps to Reproduce Connect to a redis sentinel with a ReadTimeout…
1
vote
1 answer

Sentinel auth-pass error when using redis 6.0.6

I don't want to set master redis password in the config file So I found this command from the redis official website sentinel auth-pass but when i use the error occurs like this 127.0.0.1:26378> sentinel auth-pass…
dexter
  • 11
  • 1
1
vote
0 answers

Redis Replication INFO command return wrong replication information

I have 1 master Redis and 2 slave nodes. Deployment in done on environment which does NAT and assign dynamic host and port to nodes. I have virtual IP/Port created for master which is mentioned in slave nodes configuration file replicaof
VedantK
  • 9,728
  • 7
  • 66
  • 71
1
vote
3 answers

How to allocate redis-sentinel pods on different nodes?

I'm running the redis chart (https://artifacthub.io/packages/helm/bitnami/redis/15.7.0) as a dependency of a custom chart. I enabled sentinel, then the pods are running two containers (redis and sentinel). I'm using the default values for the chart…
Martín C.
  • 33
  • 5
1
vote
0 answers

How to change UpdateColumns of DB.Transaction to asynchronous in Go/redis-sentinel?

How to change UpdateColumns of DB.Transaction to asynchronous in Go/redis-sentinel, I have some update action with below code in go, and we would like to change them to asynchronous in Go and redis-sentinel, I am very new to Go, is there anyone know…
Elsa
  • 1
  • 1
  • 8
  • 27
1
vote
0 answers

How to connect to redis master using sentinel without being an extra network call

I'm trying to connect to redis using sentinel by discovering master and then creating instance of discovered master. The following snippet implements the same. As per my understanding, first it is discovering master which takes 1 network call and…
rhoitjadhav
  • 691
  • 7
  • 16
1
vote
0 answers

Redis connection refused error in the application logs

We saw "Connection refused to ip:263*" to redis instances from the application logs. To solve we changed the port number from 26** to 6379 and it worked fine. Upon analysis we found one one of the slave redis servers have the port number 26380…
1
vote
0 answers

spring-could-gateway: reactor.netty.channel.AbortedException: Connection has been closed BEFORE send operation

I am getting the following exception in the spring gateway. This exception appears when I have configured Redis Sentinel in the gateway, it throughs exception after a couple of requests in the gateway. If I remove the redis config the gatway is…