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

Replication Error in Redis cluster using Docker Compose

I am using a Redis cluster with one master and two slaves. Also, automatic failover using Sentinel. The cluster is configured using docker-compose. The Redis image version is 6.2. I am getting the below error in Redis slave servers when I start…
0
votes
0 answers

Docker Redis sentinel strange timeout erros

I am getting strange errors for my redis-sentinel. Anyone has any idea what is this? 2022-12-14T23:00:00.000+0000 The timeout was reached before the message could be written to the output buffer, and it was not sent, command=PING, timeout: 5000,…
senzacionale
  • 20,448
  • 67
  • 204
  • 316
0
votes
0 answers

How to listen redis even with sentinel mode in spring boot

I create a listener below @Bean public RedisMessageListenerContainer listenerContainer(JedisConnectionFactory factory) { RedisMessageListenerContainer container = new RedisMessageListenerContainer(); …
0
votes
1 answer

Cannot connect to redis while using Sentinels in django-redis

Currently I am trying to integrate redis into my django project which is docker based. I was able to integrate redis using the DefaultClient but it doesn't work for SentinelClient My settings.py looks like this: DJANGO_REDIS_CONNECTION_FACTORY =…
Ahsan
  • 31
  • 1
  • 6
0
votes
1 answer

Redis Sentinel Docker Containers Failing Immediately

I am trying to set up a high availability Redis clusetr using Sentiner but I am having some issues with Sentinel and Docker. I am using the below command to set up 3 clusters. The issue is that they are created and immediately fail. I see the hash…
3therk1ll
  • 2,056
  • 4
  • 35
  • 64
0
votes
0 answers

Redis sentinel auto discovery in Docker not working

The current environment is as below, Host 1: Master in Docker Container + Sentinel in separate Docker Container Host 2: Replica in Docker Container + Sentinel in separate Docker Container Host 3: Sentinel in Docker Container Replication is working…
0
votes
0 answers

Redis slaves cache rate mismatch

We have set up 3 Redis nodes amongst which 1 is designated master(handles writes) other 2 are slave nodes and act as read replicas. We have 3 sentinels also configured for automatic failover. The client apps are all Java based applications using…
Suresh
  • 69
  • 5
0
votes
1 answer

Redis Sentinel - dedicated memory allocation per cache type

We have a Redis Sentinel setup with 1 master, 2 replicas, 3 Sentinels. And we are planning to use it as a common in-memory storage solution for all the micro-services. However, one of the micro-service is going to maintain a high priority data,…
0
votes
1 answer

Why my spring boot app couldn't access service of the redis node provided by sentinel but that redis node is actually healthy

Platform: Windows 10 JDK: 11 Command to start redis and sentinel: cd PATH_TO_REDIS\redis_s6379 redis-server.exe redis.windows.conf redis-server.exe sentinel.conf --sentinel Redis client: jedis Detailed log partial log Caused by:…
Lysander
  • 310
  • 2
  • 7
0
votes
0 answers

How to update redis master object after failover process in redis-sentinel

I have a code which connects to sentinels and discovers redis master address. After discovering master we create redis master object and perform redis operations afterwards. The problem here is that after sentinel failover process the redis master…
rhoitjadhav
  • 691
  • 7
  • 16
0
votes
1 answer

docker redis sentinel failover failure

I am trying to test redis sentinel cluster failover, implemented with a docker-compose file and the communication is hostname based. To simulate failover I stop the current redis master container example docker stop redis1, what I expect is sentinel…
Def Soudani
  • 1,151
  • 7
  • 17
0
votes
0 answers

When I create a sentinel of redis-plus-plus, an exception is raised

Please forgive me for not speaking English well. I am trying to use the redis sentinel function. When I create a sentinel of redis-plus-plus, an exception is raised. Exception occurs when Sentinel is created as shown in the code…
0
votes
1 answer

cannot connect redis sentinels on django

I'm trying to connect sentinels, but every time we got the same error Exception: Could not connect to any sentinel CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.core.RedisChannelLayer", "CONFIG": { …
shaharnakash
  • 675
  • 3
  • 11
  • 39
0
votes
1 answer

Redis - unable to failover

I have Master-Slave(3 nodes) setup using Redis Sentinel but when I try to do failover, I am seeing the below error 127.0.0.1:26379> sentinel failover mymaster (error) NOGOODSLAVE No suitable replica to promote Below is the Redis server…
CrazyCoder
  • 2,465
  • 8
  • 36
  • 57
0
votes
1 answer

Spring Reddis Configuration in Java - Redis hosts should access a single comma separated list of IPs

want to configure this redis-context.xml file into .java class and it should take single string of comma separated list of IPs.