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
1 answer

Redis master becoming slave of another master in docker environment

I have configured redis-sentinel with one master and two slaves. lets call this setup of three machines a cluster. I have a lot of clusters running on a lot of docker containers. On run time I manage the IP in the redis.conf file and sentinal.conf…
Nagri
  • 3,008
  • 5
  • 34
  • 63
2
votes
1 answer

Redis primary/secondary without replication

I am new to Redis. I read their documentation on Sentinel and Replication in which they talk about how the replicas try to remain in sync with the master as much as possible, but it is still possible that if the master fails after a successful…
Shobit
  • 776
  • 1
  • 6
  • 20
2
votes
2 answers

Stackexchange Redis Sentinel Client

i m working with Redis distributed cache with failover pattern merged with hashing data distribution. My configuration is : Sentinel1 Sentinel4 Master1 Master2 Sentinel2 …
Alex
  • 1,515
  • 2
  • 22
  • 44
2
votes
1 answer

Cannot get master address from sentinel running @myIpaddress:6379

I'm working on implementing the master slave using sentinels in Redis with spring boot application. And while creating the JedisSentinelPool using sentinels I'm getting the following error Cannot get master address from sentinel running…
Veswanth
  • 1,061
  • 9
  • 22
2
votes
1 answer

Redis sentinel does not failover my master

I am trying to setup a simple redis-sentinel, and configure it to failover the master to one of its slaves. I Set up 4 VMs (using virtualbox) with redis installed on each of them. I have a master machine and two slaves. the last machine is the…
Tomer Amir
  • 1,515
  • 4
  • 27
  • 54
2
votes
2 answers

Redis-Sentinel Errors in log after update

After I've updated redis-server and redis-sentinel from version 3.0.7 to 3.2.7 on Debian using .dpkg packages I get the following errors when booting system: фев 17 20:50:21 vm systemd[431]: Failed at step RUNTIME_DIRECTORY spawning /bin/run-parts:…
Igor
  • 41
  • 1
  • 4
2
votes
0 answers

Session Storage with Redis Sentinel in PHP

I'm currently working through the process of scaling out our server setup and we're to the point where we need to reconfigure the sessions to be stored in a high availability solution (having people logged out if a server goes down is not an…
Scott Keck-Warren
  • 1,894
  • 3
  • 18
  • 33
2
votes
1 answer

Kubernetes Redis HA and exposing redis to things outside of the container

I am trying to learn docker and kubernetes and one of the things I am trying to do is setup Redis with Sentinel and expose redis to things outside the container. Getting redis and sentinel setup was pretty easy following…
Josh
  • 1,058
  • 9
  • 27
2
votes
0 answers

What do master and slave offsets mean in redis?

I am writing a script to monitor redis replication latency in a group of redis slaves managed using sentinel. I am looking at the results of the INFO replication command, which look like this: #…
Aniket Schneider
  • 904
  • 1
  • 8
  • 21
2
votes
1 answer

How can I disable redis master-slave replication with Sentinel

We have an application with Redis Sentinel(3 sentinel 1 master 1 slave). We don't need replication at all. How can I turn off replication?
Serhii Shemshur
  • 1,273
  • 3
  • 15
  • 21
2
votes
1 answer

How to subscribe to Sentinel to monitor Redis master server switch during failover in my application?

I have searched for this answer all over, but there is no one who has demonstrated how to successfully do this. So, I have taken some code from Redis failover with StackExchange / Sentinel from C# and created a simple code-block: public…
Tom
  • 510
  • 1
  • 7
  • 24
2
votes
1 answer

Correct @EnableRedisHttpSession configuration with Redis Sentinel

I have a Spring Cloud based application with multiple backend Spring-Boot servers. The servers are all sharing their session with a Redis server via @EnableRedisHttpSession. I'm trying to configure the application with master-slave configuration and…
odedia
  • 931
  • 2
  • 11
  • 27
2
votes
2 answers

sentinels do not recognize master nor themselves

I have set up a master - slave - slave relationship among my 3 instances, at 127.0.0.1:6379, 6380, 6381. Instances and sentinels all run on same IP, different ports. and I have set up 3 sentinels(127.0.0.1:26379,26380,26381) with following…
Joe Jung
  • 47
  • 1
  • 7
2
votes
2 answers

Redis Sentinel : last node doesn't become master

I'm trying to set up an automatic failover system in a 3 nodes redis cluster. I installed redis-sentinel on each of these nodes (juste like this guy : http://www.symantec.com/connect/blogs/configuring-redis-high-availability). Everything is fine as…
P. Bender
  • 23
  • 1
  • 4
2
votes
1 answer

changing the quorum in redis sentinel

I have 3 sentinels monitoring a master slave setup with a quorum of 2, I would like to increase this to 5 sentinels and a quorum of 3. However when I run SENTINEL SET master quorum 3 the change is not propagated to the other 2 sentinels. Is this…
henry.oswald
  • 5,304
  • 13
  • 51
  • 73