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
2 answers

Celery Cannot connect to sentinel: No master found for 'mymaster'

I have a working redis sentinel. I can connect to it with python code and ping it without issue (code below). However when I try to connect my celery application to this redis sentinel, I get back no master found for 'mymaster'. I probably have some…
2
votes
1 answer

C# operations in Redis sentinel

I've setup a local docker environment for an HA redis cluster (2 replicas, 1 master, 3 sentinels). Only the sentinels are exposing ports (10021, 10022, 10023). I'm using the stackexchange.redis C# client v.2.1.58, and try to do some basic…
user9124444
2
votes
2 answers

Spring Boot Caching with Redis Sentinel always connects to master node

I have a Spring Boot (2.3.1.RELEASE) app that has caching with Redis Sentinel. This is my configuration for the Sentinel connection: @Bean public LettuceConnectionFactory redisConnectionFactory() { RedisSentinelConfiguration sentinelConfig = new…
Urosh T.
  • 3,336
  • 5
  • 34
  • 42
2
votes
0 answers

How to get hostname of Redis master from Sentinel

I am facing a problem with Sentinel TLS. So the issue is in the background I have a node application trying to connect to Redis using sentinel. When we request a master address to sentinel it's returning IP instead of HOSTNAME so the node is trying…
SNR
  • 460
  • 5
  • 20
2
votes
1 answer

Update Redis from v3.2.12 to v6

I need to upgrade our redis cluster(s) from v3.2.12 to latest (v6). What would be the easiest route for upgrading? We run Redis as well as Sentinel on each node. 3 node cluster -> 1 master, 2 slaves Thank you very much
jacoblom
  • 33
  • 1
  • 5
2
votes
1 answer

Upgrade Redis 4.0.7 to 5.0.5

I have environments of Redis varying from RHEL 6.10 to RHEL 7.7. I'm looking for information about supported platform and respective versions and other pre-requisites to get started. However I did not find any related documentation anywhere in…
Preethi Jahnavi
  • 187
  • 1
  • 1
  • 10
2
votes
3 answers

Redis multi sentinel not elect new redis master after failure

i have a three node redis and 3 node sentinel, everything is ok and all master and slaves are verified and sentinel config file is updated with all redis and sentinel nodes, but the problem is when redis master is down and sentinel wants to elect…
Jividijuvent
  • 27
  • 1
  • 5
2
votes
1 answer

sentinel cannot promote initial master back to MASTER mode after failover

I am running redis in sentinel mode with 1 master node, 2 replica nodes and 3 sentinel nodes. I am running all the nodes in docker swarm environment. All nodes starts fine. At start we have the following IPs for nodes master 10.0.20.2…
Kuldeep Singh
  • 1,214
  • 4
  • 18
  • 45
2
votes
0 answers

Redis sentinel high availibility - error on running sentinel.conf

I am configuring Redis sentinel on 3 nodes. I am able to execute redis.conf with all the master slave configuration. Having issue to figure out what is causing sentinel.conf to error out. This is the error I am getting on executing cd src/ &&…
user557657
  • 856
  • 1
  • 12
  • 35
2
votes
1 answer

Who rewrites redis configuration slaveof of slave redis instances?

Consider a redis sentinel setup with 5 machines. Each machine has sentinel process(s1,s2,s3,s4,s5) and redis instance(r1,r2,r3,r4,r5) running. One is master(r1) and others as slave(r2...r5). During failover of master r1, redis configuration slaveof…
gourav kumar
  • 141
  • 1
  • 11
2
votes
0 answers

Too many open connections in redis server for jedis sentinel in ESTABLISHED state

When we close the Jedis connection, it closes on client side but on server connection is still in ESTABLISHED mode. connections are never getting closed on server for the same client and it keeps growing. And we are getting…
Sushil
  • 364
  • 6
  • 22
2
votes
0 answers

Setup Redis Sentinel with Multiple Hosts

I'm trying to connect my app to a redis sentinel but I noticed that it is possible to have multiple hosts for your sentinels. Does it mean that my app is connected to multiple sentinels or will it use the next host in case the first host is…
mmuncada
  • 528
  • 1
  • 11
  • 31
2
votes
1 answer

Redis sentinel with only one host

I need to setup a development environment with redis. It need to have sentinels, to replicate the behavior we have in production (because our client applications use a JedisSentinelPool to connect). Unfortunately I only have one host available. Is…
0x26res
  • 11,925
  • 11
  • 54
  • 108
2
votes
2 answers

Unable to connect redis sentinel using jedis

I am trying to connect to redis sentinel using JedisSentinelPool private static final JedisSentinelPool pool = new JedisSentinelPool("mymaster", getSentinels()); private static Set getSentinels(){ Set mysentinels = new…
Manas Saxena
  • 2,171
  • 6
  • 39
  • 58
2
votes
2 answers

How to configure redis sentinels to bring back a recovered node as a master?

The setup I have a failover redis setup that consists of three sentinels and two redis servers, which are all on separate boxes. The setup looks like : ------------------- | Sentinel1 - AMS |\ ------------------- \ --------------------------- …
drinchev
  • 19,201
  • 4
  • 67
  • 93