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

Laravel 10 - phpredis with sentinels possible?

I'm looking into a way to setup Redis HA using Sentinels, and am looking into drivers that will work with laravel and laravel/horizon for job scheudling. I've been looking into solutions on google - there doesn't seem to be either documentation or…
Erikas
  • 45
  • 6
0
votes
0 answers

Redis 6.2.7 - Sentine connection closed for overcoming of output buffer limits

I am facing a strange issue with a Redis HA based on Sentinel. After a period of time, Redis is closing the connection of all the Sentinels (not at the same time) with the following log entry: 14766:M 25 May 2023 14:13:14.156 # Client id=10…
0
votes
0 answers

Redis Sentinel is not promoting a replica to be the new master. Down server master is still seen as a master

I'm trying to set up the Redis sentinel configuration in Ubuntu. When I tried to failover scenario I couldn't be successful. I created 1 master (A) and 2 replica nodes (B, C). Then I made configuration for Sentinels. To test the failover I have…
0
votes
0 answers

"sentinels" and "slaves" in redis sentinel info never decrease

A redis cluster with one master node and two replica nodes. There are three sentinels to monitor the master node. sentinel config is follow: protected-mode no bind 0.0.0.0 port 26380 daemonize yes appendonly yes pidfile…
ll hitsz
  • 1
  • 1
0
votes
1 answer

Not being able to connect to my sentinel redis from my python flask app

Hi I used official docker-compose file to setup my redis with sentinel as below: version: '2' networks: app-tier: driver: bridge services: redis: image: 'bitnami/redis:latest' environment: - REDIS_REPLICATION_MODE=master …
hmffa
  • 5
  • 3
0
votes
0 answers

Redis Sentinel in Kubernetes gives error failover-abort-not-elected master mymaster

When deploying Redis sentinel in the kubernetes cluster, if the underlying k8s node that hosts the Redis master node restarts, sentinel is unable to stabilize on a new master. It keeps on cycling masters and gives the below…
John
  • 1
0
votes
0 answers

Jedis can't connect to the Redis Sentinel runs into Docker

I'm trying to connect to the Redis Sentinel in the Docker running on the Windows (Docker Desktop or Rancher Desktop) using Jedis library. Sentinel works fine, if I kill redis-master it reconfigured master to the slave and vice versa. Redis version:…
Nikita
  • 21
  • 1
0
votes
0 answers

How to use Redis and Redis-Sentinel without saving passwords in clear-text?

I use Redis 6.2 services on different servers, and each one of them has a Redis Sentinel instance. For each Redis instance, I have a redis.conf that stores: The password that clients and Sentinel use to authenticate as requirepass For…
0
votes
0 answers

ruby-on-rails-7 resque config for high availability with redis sentinel

when i try the same approach for the resque.yml that works without an issue with the config.cache_store = :redis_cache_store, the resque workers are unable to connect at all: name: mymaster role: master sentinels: - host: host_one …
0
votes
1 answer

Configuration Redis Sentinel in Micronaut

I currently have a running application with Redis and I would like to add Redis Sentinel configuration to ensure high availability for my database. Could someone help me with configuring Redis Sentinel in Micronaut? Application.yml file: redis: …
Savitar
  • 1
  • 1
0
votes
0 answers

Redis Sentinel failover doesn't happen as expect

I have three simplest Redis instances: 127.0.0.1:6379(master), 127.0.0.1:6380(slave), 127.0.0.1:6381(slave). And I have three Redis Sentinel instance: 127.0.0.1:26379, 127.0.0.1:26380, 127.0.0.1:26381. they all monitor the master. three redis.conf…
0
votes
1 answer

Quarkus redis client throwing error 'java.util.concurrent.CompletionException: io.vertx.core.impl.NoStackTraceThrowable: No more endpoints in chain.'

We're trying to move from standalone redis to redis High availability mode. However while load testing in dev environment we're receiving below error. level=ERROR time="07-03-2023 20:54:35" traceId="5a65a85d2f6ccaa8" logger=GlobalExceptionMapper…
KVS
  • 503
  • 1
  • 5
  • 9
0
votes
1 answer

redis sentinel starts monitoring machine which gets recreated with same IP address used earlier as part of redis sentinel cluster

I had done an automation of deploying redis-sentinel cluster via ansible but there is one catch that I am struggling to fix. We use our internal data center in which there is a high chance of getting the same IP address after destroying the existing…
Shubham Saroj
  • 290
  • 2
  • 12
0
votes
1 answer

This operation has been disabled in the commmand-map cannot be used =: SET - Redis sentinel connection error but redis works

This operation has been disabled in the commmand-map cannot be used =: SET, error while connecting redis sentinel. Here is the code sample.. `var options = new ConfigurationOptions { EndPoints = { "host1:26379", "host2:26379", "host3:26379" }, …
smka
  • 1
0
votes
0 answers

Redis sentinel becomes stable after first failover

I have a redis sentinel structure with 3 redis instances and 3 redis-sentinel instances. When I make them up for the first time, slaves constantly changes their master to 127.0.0.1 and then back to real master and then to 127.0.0.1 and so on. When I…
fko
  • 76
  • 9