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

Redis sentinel can not fail over the slave service

I'm gonna deploy a simple master-slave redis cluster with two servers: 192.168.0.101, 192.168.0.103, and 101 is the master. here is the sentinel.conf on 103 server: port 26379 bind 192.168.0.103 127.0.0.1 sentinel myid…
DennisLi
  • 3,915
  • 6
  • 30
  • 66
0
votes
1 answer

Is the SETNX always executed on redis master in the sentinel system?

wanted to ask if the SETNX command (both the NX test and the SET) guaranteed to execute on the redis master in the context of the "Redis Sentinel System" ? if it is guaranteed to to be atomic in the context of the "Redis Sentinel System"? My…
Luke2k4
  • 3
  • 1
0
votes
1 answer

rspamd with redis-sentinel gives a timeout

Since some time we are running rspamd and redis (and sentinel) with a separate DB for most modules. Data seems to be written to the databases but for some reason we get errors like "cannot get masters data from Redis Sentinel 10.11.12.1:26379:…
Lars
  • 1
  • 1
0
votes
1 answer

Redis: redis-cli not asking for password

I have configured my redis.conf with requirepass and I started the server with redis-server redis.conf However, when I run redis-cli it does not ask me for password and lets me connect to redis, but when I try to run a command, asks me for the…
0
votes
1 answer

How to setup docker compose with redis, sentinel and django+celery

I'm having trouble with the setup of sentinel on docker. Everything I've found looks old and deprecated and having issues when I'm trying to run. I'm using docker-compose with code like this : redis-master image: redis:4.0.11-alpine …
Heraknos
  • 343
  • 3
  • 8
0
votes
3 answers

Cannot restart redis-sentinel unit

I'm trying to configure 3 Redis instances and 6 sentinels (3 of them running on the Redises and the rest are on the different hosts). But when I install redis-sentinel package and put my configuration under /etc/redis/sentinel.conf and restart the…
Yashar
  • 2,455
  • 3
  • 25
  • 31
0
votes
0 answers

Too many TCP connections between redis master and slave

Our redis configuration has 1 master and 1 slave node with min-slaves-to-write as 0 in both nodes. But the number of TCP connections is around 20000. Is this normal ?
0
votes
1 answer

Is it possible read happens before replication when Redis is in sentinel mode?

I am running Redis in sentinels mode, It has happened many times that I write data in Redis but while reading same key I don't get expected value. I am wondering if it is possible when I write data it is written on Master and while reading it goes…
Akshay Naik
  • 669
  • 1
  • 6
  • 22
0
votes
1 answer

Redis Sentinel Authentication using Lettuce+SpringDataRedis

I have the redis sentinels configured in my local running at 2 different ports 10001 and 10002. I have the sentinel authentication setup for the same. Redis sentinel configuration port 10001 bind 127.0.0.1 requirepass password sentinel myid…
Saravana6788
  • 157
  • 1
  • 4
  • 14
0
votes
1 answer

cannot run passed Lua script to Redis: This Redis command is not allowed from scripts

I have three instances of Redis server running sentinel and a Lua script in order to let the redis_exporter gather the list of connected clients to the Redis server. but when I pass the script to the redis-cli command I get the following…
Yashar
  • 2,455
  • 3
  • 25
  • 31
0
votes
1 answer

Redis sentinel cluster in kubernetes, sentinel is not able to reach redis master

I am working on creating a Redis sentinel cluster by using below: https://github.com/kubernetes/examples/tree/master/staging/storage/redis It's working awesome with the given image, but when we use the Redis official image the sentinel is not able…
0
votes
1 answer

Redis Sentinel with 2 App Servers and 1 Additional Sentinel Node Setup

We have 2 app/web servers running HA application, we need to setup redis with high availability/replication to support our app. Considering the minimum sentinel setup requirement of 3 nodes. We are planning to prepare the first app serve with redis…
Khaled Obaid
  • 275
  • 3
  • 13
0
votes
0 answers

Will redis-sentinel support end?

I am currently using redis-py, and redis-sentinel. I heard that redis-sentinel support will end, is that true? Will only redis-cluster be supported in the future?
TA Hyouno
  • 377
  • 1
  • 2
  • 8
0
votes
1 answer

Naming current Redis master (run in Docker) in Python

How to make Python failover to Redis slave if master is down? With current configuration, Sentinels elect a new master, but Python writes stop. I assume I should not use redis-master as is in docker-compose.yml file; what are the alternatives? In…
user11992940
0
votes
1 answer

Running Redis Sentinel, HAProxy and Apache/w PHP on the same servers

I'm trying to introduce more redundancy and reliability to my server architecture. Currently I have a variable number of web servers (minimum two) running apache with PHP and Memcached for sessions, which means that if one of the server goes down,…
Ben
  • 4,707
  • 5
  • 34
  • 55