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

Should Redis Sentinel Monitor Each Master in a cluster?

Does it require sentinel to monitor each master in the cluster with a distinct service name, or just one of the 3 masters in the cluster? My current config is 3 masters, 3 slaves, and 3 sentinel instances. Each instance of sentinel is monitoring…
Aaron M
  • 2,523
  • 1
  • 23
  • 38
1
vote
1 answer

How to run a redis cluster with Sentinel

Since scaling and high availability are usually different concepts (Unless you opt for a load balancing fault tolerance scheme), I hoped Redis would support both. However to my understanding, we cant mix Redis cluster with Sentinel? If so how do I…
user3612009
  • 655
  • 1
  • 6
  • 18
1
vote
1 answer

How to setup redis/sentinel replication/monitoring with docker on separate docker machines?

Let's say I have 3 separate machines: redis$ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS redis-master * virtualbox Running tcp://192.168.99.101:2376 …
user606521
  • 14,486
  • 30
  • 113
  • 204
1
vote
1 answer

Connecting to redis cluster with sentinel on kubernetes

I've successfully set up a password-protected redis cluster using the guide here: http://kubernetes.io/v1.1/examples/redis/ I can connect to the sentinel just fine using redis-cli, but I cannot connect to the redis master/slave even though I have…
sambehera
  • 959
  • 3
  • 13
  • 33
1
vote
3 answers

Redis sentinel Docker setup

Bascially I am trying to setup a single Redis-sentinel docker instance and want to make calls from my app container. The issue I am running is this - the redis-sentinel container is linked to the app container. So, initially the app asks the…
user1489580
  • 45
  • 2
  • 5
1
vote
1 answer

In Redis-sentinel master-slave cofiguration new master is shown as down for the initial master

Have installed a redis (v. 3.0.4) master-slave model using 3 nodes (1 master and 2 slaves) with requirepass for each node as described in https://www.digitalocean.com/community/tutorials/how-to-configure-a-redis-cluster-on-ubuntu-14-04 then started…
kmarabet
  • 1,087
  • 3
  • 14
  • 31
1
vote
1 answer

State of the original redis master upon resurrection after sentinel failover

Consider the following setup for a redis high-availability solution: 3 VMs each running an instance of redis server and an instance of sentinel to monitor the setup. R1 (redis on VM1) is configured as a master, R2 and R3 as slaveof R1; S1... S3…
Oleg Sklyar
  • 9,834
  • 6
  • 39
  • 62
1
vote
3 answers

Redis - configure sentinel to elect slave if master shutdown

Hi i have create a cluster Redis with sentinel composed by 3 aws instances, i have configured sentinel to have an HA redis cluster and work, but if i simulate a crash of master (shutdown of master instance), sentinel installed on slaves, not locate…
stecog
  • 2,202
  • 4
  • 30
  • 50
1
vote
1 answer

Call Sentinel failover from Python

I have a simple Redis configuration running with 3 Servers and 3 Sentinels (different instances though). This configuration is running almost flawlessly, eventually, my Master fails (common Redis problem where it couldn't finish background…
ademarizu
  • 845
  • 1
  • 8
  • 18
1
vote
1 answer

Redis Sentinel doesn't resurrect master -> slave until it is restarted

I'm having trouble with resurrecting a master node with Sentinel. Specifically, slaves are promoted properly when the master is lost, but the master upon reboot is never demoted. However, if I restart Sentinel immediately the master node is demoted.…
nflacco
  • 4,972
  • 8
  • 45
  • 78
1
vote
3 answers

what are the npm module spport Redis Sentinel as a for session store

I am going to use redis sentinel cluster as a session store in my Node js (express) web application. Could you please list the best npm module for do this.
Dinusha
  • 696
  • 1
  • 14
  • 27
1
vote
1 answer

Redis fail over with sentinel not working

I am trying to setup redis-sentinel configuration for the fail over support .Here is my configuration , machine1 : IP : 10.0.0.1 6379 with redis-sentinel port 26379 machine2 : IP : 10.0.0.2 6379 with redis-sentinel port 26379 machine3…
mbdvg
  • 2,614
  • 3
  • 21
  • 39
1
vote
0 answers

How to use redis sentinel to get configuration of current master?

I have configured Redis servers with 1 master and 2 salves and 1 sentinel to monitor the master. As per the documentation if the master is down sentinel will promote any of the slave as the master. So my question is how to get the configuration of…
prashant patil
  • 319
  • 2
  • 13
1
vote
1 answer

Simple BASH script to start Redis sentinel

I have this simple script to attempt to start 3 different Redis Sentinel processes that will monitor master/slave Redis processes: # (attempts to run 3 sentinel processes from one script) redis-sentinel /usr/local/redis/sentinel-26379.conf …
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
1
vote
2 answers

Redis Sentinel manual failover command timesout

Redis Sentinel manual failover command timesout I have one Redis master, one slave, and one Sentinel monitoring them. Everything seems to be working properly including failover when the master is killed. But when I issue the SENTINEL FAILVER…
Carl Rossman
  • 383
  • 1
  • 4
  • 10