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

Redis Sentinel Architecture for two node Redis Replication

I have two Redis instances, master and a slave, for which I need a High Availability architecture. I am using Sentinel for handling the failover scenario. But when I am using two instances of Sentinel on two individual machines with quorum value 1,…
1
vote
1 answer

Does 'hiredis' support Redis Sentinel and Redis Cluster?

'hiredis' is a minimalistic C client for Redis. Does anyone know if it supports - Redis Sentinel (the official high availability solution for Redis) https://redis.io/topics/sentinel and Redis Cluster https://redis.io/topics/cluster-tutorial It is…
smulkutk
  • 71
  • 9
1
vote
0 answers

Adding Sentinel ANNOUNCE_IP after container is up via entrypoint.sh

Docker swarm-mode is tricky when it comes to IP addresses since the IP it shows not necessarily the one in use. This confuse Sentinel in swarm-mode. To get around this Im adding steps to sentinel-entrypoint to ANNOUNCE_IP after container in up and…
haytham
  • 502
  • 4
  • 22
1
vote
1 answer

redis sentinel failover not happening in docker swarm

I have been trying to setup redis in sentinel mode using docker-compose file. Below are the contents of my compose file - version: '3.3' services: redis-master: image: redis:latest deploy: replicas: 1 networks: -…
Kuldeep Singh
  • 1,214
  • 4
  • 18
  • 45
1
vote
0 answers

Redis reaching max clients immediately on startup

We're having an issue hitting the max number of clients immediately after starting redis. When issuing a MONITOR command, we see thousands of INFO commands issued from our master server. It seems to be baselining around 9000 connections most of the…
1
vote
1 answer

How to start `redis-sentinel` server successfully

Sorry redis newbie here. When I run redis-sentinel 42533:X 10 Nov 21:21:30.345 # Warning: no config file specified, using the default config. In order to specify a config file use redis- sentinel /path/to/sentinel.conf 42533:X 10 Nov 21:21:30.346…
srm
  • 655
  • 1
  • 8
  • 21
1
vote
1 answer

Configure Redis Sentinel in Laravel 5.5

How to configure the Redis sentinel? Redis can be configured in stand alone easily using laravel configs but when using sentinel how to configure is not documented anywhere? There is one similar question asked on redit: but no help.
gk.
  • 338
  • 5
  • 15
1
vote
1 answer

Is it possible to perform a Redis failover without a quorum?

Say I have a Redis setup of 3 servers and I have redis-sentinel configured to require a quorum of 2 sentinels to initiate a failover. If 2 of my servers die and I only have 1 remaining, is there a way that I can manually sanction that failover to…
Brady Dowling
  • 4,920
  • 3
  • 32
  • 62
1
vote
1 answer

Redisson + redis sentinel. how to handle failover and write into redis?

I have just edited my previous question, and I am providing more details, (hopefully someone would be able to help). I have a Redis cluster with 1 master and 2 slaves. All 3 nodes are managed by Sentinel. The failover works fine and when the new…
1
vote
0 answers

Redis Sentinel - Local IPs / Virtual IPs conflicts

I'm having an issue trying to implement Redis Sentinel... I set up two servers B and P, on two different geo sites, acting as Master and Replica, respectively. For geo sites to reach each other, vIPs are used, whereas nodes of a same site use…
1
vote
1 answer

Failover and client timeout

I am using ServiceStack 5.0.2 with Redis Sentinel (3 + 3) and having issues in case of a failover: commands being issued during or after a failover fail with timeout. I have come up with an idea to implement retry pattern via custom IRedisClient.…
1
vote
1 answer

how to check the message published from redis sentinel to redis master?

Question Background: I deploy a redis cluster in k8s cluster and use Redis-Sentinel to implement ha for redis cluster. My redis cluster structure likes below: One master One slave three sentinel (serve a specific redis cluster) When i login the…
LittleDriver
  • 107
  • 2
  • 8
1
vote
1 answer

Redis Client not connecting to Redis server via HAProxy

I'm facing an issue while connecting to Redis server via HAProxy using Jedis as a redis client. Everything works fine when Redis server is directly connected to but, the same is not working via HAProxy. Both HAProxy and Redis services are running on…
1
vote
0 answers

Redis Multinode + SAP Cloud

I have deployed my application on SAP Cloud Foundary which creates connection with Redis Multinode instance running on the cloud. The application can push and fetch data from Redis successfully. Now I want to check high availability of Redis Nodes…
1
vote
0 answers

redis senitnel and quorum

I am using one master and slave conf files. Master.conf is usual configuration with: bind 0.0.0.0 port 6379 requirepass mypswd Ans slave.conf has These: bind 0.0.0.0 port 6380 slaveof master 6379 masterauth mypswd And i have one sentinel.conf…
pgman
  • 493
  • 3
  • 12
  • 21