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

Redis HA with Sentinel on Docker

I'm struggling now for a week with the Redis HA on Docker. I am not quite convinced if my intentions will even works. The documentation is understandable, but there are many examples which do not correspond to the documentation. Well, what I want to…
1
vote
1 answer

Can one Redis Sentinel configuration monitor multiple Redis instances?

Hoping someone can shed some light. I am setting up a Redis Sentinel cluster as per configuration below: Node 1 - Master Redis + Sentinel 1 Node 2 - Slave Redis + Sentinel 2 Node 3 - Sentinel 3 (to maintain quorum) The way we will use Redis is to…
1
vote
0 answers

docker redis container startup issue

I have question about docker redis-sentinel:5.0.10 startup issue. I am running docker on CentOS7 Linux. Before 5.0.10 version I used 4.0.9 and image was taken from our own repository, now I switched to bitnami repo. The main problem is that I try to…
sergei
  • 402
  • 1
  • 5
  • 14
1
vote
1 answer

Spring Data Redis - How to detect a failover to resubscribe to channels

I'm using Spring Data Redis with Redis Sentinel and subscribe to keyspace event notifications. How to detect when a switch to a new master occurs as a result of a failover so that I can resubscribe to the required channels?
Inego
  • 1,039
  • 1
  • 12
  • 19
1
vote
1 answer

Redis sentinel As a windows service

I downloaded the sentinel.conf file from https://download.redis.io/redis-stable/sentinel.conf and put it in to my default Redis installed location C:\Program Files\Redis. Then following changes are applied to the configuration file. File…
1
vote
0 answers

Failed to connect to sentinel from java app on local machine

Trying to prepare docker-compose file for local development which will be similar to prod setup as much as possible. Here is my docker-compose.yml: version: '3' services: redis-master: image: redis:6.0.5 redis-slave: image: redis:6.0.5 …
1
vote
1 answer

How to connect to redis sentinel and manipulate different dbs

I am struggling to connect redis in sentinel mode using redis-cli. I've tried: redis-cli -h my_host -p my_port -a my_password I randomly picked up one from 3 sentinel nodes to connect. However, when logged in, it seems different with single mode…
Shu
  • 187
  • 1
  • 13
1
vote
1 answer

Highly available, redundant Redis-cluster over kubernetes

The objective is to create a highly available redis cluster using kubernetes for a nodeJS client. I have already created the architecture as below: Created a Kubernetes cluster of Kmaster with 3 nodes (slaves). Then I created statefulsets and…
1
vote
1 answer

This operation has been disabled in the command-map and cannot be used: AUTH: RedisCommandException

I have the below code to setup the Sentinel Redis connection. var redisConfiguration = configuration.GetSection(redisSettingsJsonSection).Get(); var configOptions = new ConfigurationOptions { …
George Taskos
  • 8,324
  • 18
  • 82
  • 147
1
vote
0 answers

Specify ip to Docker container failed

I have two machines(A,B) with Ubuntu 16.0.4. Both installed docker(version 18.03.0-ce) and weave(2.3.0). When I try to start the redis docker container with a specified ip: docker run --name redis-master --net weave --ip 192.168.30.11 -d redis:5.0.8…
fcbflying
  • 693
  • 1
  • 7
  • 23
1
vote
2 answers

How to configure Spring redis sentinel in kubernetes

I have a redis sentinel master slave setup with 1 master and 3 slaves and this is in Kubernetes environment.In the spring lettuce configuration, I have to specify the sentinels URLs with port numbers. How should I specify the URL for each sentinel?…
sachin
  • 1,220
  • 1
  • 14
  • 24
1
vote
2 answers

Redis 6 TLS Support and Redis Sentinel

I would like to set up a basic 3-node Redis Sentinel setup using the new TLS features of Redis 6. Unfortunately, it doesn't seem like Redis 6 Sentinel is smart enough to speak TLS to clients. Does anyone know of a way to do this, or if it's not…
Testing
  • 176
  • 1
  • 10
1
vote
0 answers

Redis sentinel detect slave problem in swarm mode

I am trying to build a simple redis sentinel demo by docker and swarm. There are two nodes: node1(swarm manager), node2. Node1 will run a redis master and a sentinel, Node2 will run a redis slave. This is my docker-compose file(control the…
ppbb
  • 129
  • 8
1
vote
1 answer

Error when trying to connect to sentinel with password using ioredis nodejs module

I am trying to use ioredis to connect to my sentinel service under docker which require a password in my config. Here is my code : sentinels: [ { host: "192.168.0.35", port: 26379 } ], name: "redismaster", sentinelPassword:…
1
vote
1 answer

How to run sentinel commands with redis.py

Does it possible to run sentinel commands like SENTINEL masters with python? link is here. Before using sentinel.master_for("master_name"), I have to know the master name, however, the redis service I used is provided by company's privite cloud…
buxizhizhoum
  • 1,719
  • 1
  • 23
  • 32