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 fail over when primary is up but slowed down by network

I am not a Redis guru. We had a recent case in production where AWS traffic caused a huge network spike for a about 15min. Once the network issue went away the cluster returned to normal in about 30 seconds. If typical response time is 1ms then…
redboy
  • 599
  • 1
  • 8
  • 18
1
vote
1 answer

How do I setup Redis for hardware failures?

I am implementing a caching solution for our business. I have 3 linux boxes and I am going to set up sentinel for redundancy/HA ..etc. The configuration looks pretty straight forward. For our current web services we do load balancing by sending…
Eric
  • 958
  • 1
  • 11
  • 28
1
vote
1 answer

redis-cli 'sentinel slaves redis-cluster' returns an empty list with a password protected master

sentinel slaves returns an empty list with a password protected master. My current redis-cluster setup is the following: 3 Different linux servers srv 1 => redis master + sentinel 1 srv 2 => redis slaves + sentinel 2 srv 3 => sentinel 3…
Orsius
  • 830
  • 1
  • 11
  • 18
1
vote
2 answers

Could not load type 'ServiceStack.Redis.RedisSentinel' from assembly 'ServiceStack.Redis, Version=3.9.48.0, Culture=neutral, PublicKeyToken=null

Currently in my application I am trying to implement application caching for which I have used RedisSentinel. We have a common assembly which is having all code and configurations implemented for Redis, and that assembly is having ServiceStack…
Nirman
  • 6,715
  • 19
  • 72
  • 139
1
vote
1 answer

Automatic discovery of master by sentinel

A redis master can be discovered via sentinel using: from redis.sentinel import Sentinel sentinel = Sentinel([('127.0.0.1', 26379)]) master_server = sentinel.master_for('mymaster') Now to write data to the master node : master_server.setex(key,…
greenlantern
  • 374
  • 1
  • 3
  • 15
1
vote
1 answer

Connecting Celery to Redis via Sentinel

How do I tell celery about the service name I am looking for on redis? I am trying to use the built-in Sentinel support in Celery 4. I am passing a broker URL configured as it says to in the documentation: sentinel://0.0.0.0:26379 But redis appears…
Desiree Cox
  • 349
  • 4
  • 13
1
vote
0 answers

Promoted redis master still thinks it's slave

I'm using a redis setup with a master, two slaves and a single instance of redis sentinel ( i know this is not recomended, but we are just doing a proof of concept). The master listens on 6379. When we failover the master, we query redis sentinel…
Pedro
  • 11
  • 2
1
vote
1 answer

Redis sentinel failover, choose specific master

I have 3 replicated Redis instances running on 3 different machines: A, B and C. I initially choose A as my master. I also have 3 sentinels (1 on each machine) monitoring A. In case A goes down, I want sentinels to choose a specific master to…
Jbezos
  • 141
  • 9
1
vote
1 answer

Redis master fallback after a failover

We are trying to upgrade our redis/sentinel cluster from 2.8 to 3.2. Upgrade is going to happen under a heavy traffic. No downtime is acceptable for us. Our setup has 6 redis/sentinels (3 sites, 2 servers on each site, each server has one instance…
pcapcanari
  • 11
  • 3
1
vote
1 answer

Difference between Redis Replication and Redis Sentinel

I am trying to understand if the Redis replication (described here) relates to the Redis Sentinel (described here) or are totally different approaches to data replication.
georgeliatsos
  • 1,168
  • 3
  • 15
  • 34
1
vote
0 answers

How to write integration test cases for Redis sentinel fail over scenraio

I have been using Redis and using stackexchange client library in c#. I have written some integration test cases using third party library called 'Redis inside'. Now that I have to write integration test cases for sentinel fail over case. Do anyone…
Srik91
  • 79
  • 2
  • 12
1
vote
1 answer

Redis 3.2 Sentinel not working

My Redis Sentinel failover is not working, when the master is done, no handshaking is done, and failover does not happen; however sentinel shows when the master is back to normal state or when it is down. My sentinel.conf file contents are below: #…
user2693188
  • 37
  • 1
  • 9
1
vote
0 answers

Websocket-rails and redis-rb do not restore Pub/Sub Channel on failover

I'm using websocket-rails in a synchronized cluster configuration: 2 Rails Instances (FrontEnd) 2 Redis Instances, One Master one Slave (Backend) 4 Sentinel Instances on all Nodes Websocket-rails successfully creates a connection via redis-rb by…
1
vote
1 answer

Spring XD distributed mode redis configuration

I am trying to configure spring XD in distributed mode and I unfortunately I was unable to do so. I am trying to back the inter-module channels using redis and I have a 3 node redis 3.0 cluster running. My changes to the configuration are shown…
Sai Krishna
  • 624
  • 8
  • 20
1
vote
1 answer

logstash with redis sentinel is possible?

I want to build a High availability ELK monitoring system with redis.But a little confuse for how to make redis HA. Redis Sentinel provides high availability for Redis. But i donot find any configuration for this on the document.…
Mark Zhou
  • 13
  • 3