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
0 answers

Redis Sentinel DEL command issue

Because of the security concerns I had to rename DEL command on all of the 3 Redis Sentinel nodes. Master is able to expire its keys and remove them off the memory. However Slaves are not able to remove the keys. Eventually memory gets maxed up and…
0
votes
1 answer

How to run redis sentinel monitoring redis servers

I have 3 redis servers running with 3 sentinels on each host 3 redis-3 sentinels(total 3 hosts) Can I run sentinel on a separate host or it should always run along with redis-server? 3 redis on 3 hosts 3 sentinels on 3 other hosts(total 6…
AATHITH RAJENDRAN
  • 4,689
  • 8
  • 34
  • 58
0
votes
0 answers

Redis Sentinels can not connect to slaves

I have 1 master and 2 slave redis servers. I configured sentinel.conf in all the 3 servers as same(sentinel port-26379). When I start the Sentinel I got an error message saying the following: 16765:X 22 May 2019 12:19:53.215 # Configuration…
AATHITH RAJENDRAN
  • 4,689
  • 8
  • 34
  • 58
0
votes
1 answer

When using redis sentinel how do I secure the master and replica nodes with a password?

I was able to add requirepass "redis-dev-pass" to the sentinel config files to set a password for those servers. But when adding the same field to the master and replicas including a masteauth field sentinel thinks that all those servers are…
Dylan
  • 2,161
  • 2
  • 27
  • 51
0
votes
1 answer

sentinel - prevent specific slaves being promoted

I have a setup: 3 sentinels, 1 redis master M1, 2 redis slave S1, S2. I don't want S2 being promoted to master when M1 down. How can I do it?
quangpn88
  • 567
  • 2
  • 7
  • 15
0
votes
0 answers

Redis Sentinel Readonly Slave with no Auth

Setup: I have three machines with co-located Sentinel/Redis, exactly as in example-2, configured with sentinel auth-pass, masterauth, requirepass. -- failover, read/write -- all works. Requirement: I want to add in a Redis slave (4th instance of…
mushipao
  • 376
  • 5
  • 7
0
votes
1 answer

What is the expected behavior of Redis Sentinel if you accidentally write to a slave

I'm trying to figure out what the expected behavior is in a Redis Sentinel setup (NOT Redis Cluster) if you accidentally issue a write command (such as SET or BLPOP) to a Redis slave. My instinct was that you would immediately receive back an error…
Nick Williams
  • 2,864
  • 5
  • 29
  • 43
0
votes
1 answer

Jedis behave unexpectedly with multiple sentinel in redis

I am using Spring 2.1.1 and Redis 4.0.1. I have configured two node computers one with IP:192.168.20.40 with master configuration and other with IP:192.168.20.55 with slave configuration. I am running Springboot application using jedis (not using…
0
votes
3 answers

Spring Redisson Sentinel Error - At least two sentinels are required

I am using Sentinel mode for Redis. I am using Redisson Client version 3.9.1 org.redisson redisson-spring-data-20
rohanagarwal
  • 771
  • 9
  • 30
0
votes
1 answer

Redis Cluster vs Twemproxy - MOVED responses

I want to use Redis for a particular use case. I am not sure to go with a Redis Cluster or with Twemproxy + Sentinel. I know the Cluster is a winner any day. I am just skeptical due to the MOVED responses. In case of MOVED responses, the client…
Tarun
  • 152
  • 1
  • 15
0
votes
1 answer

Redis Sentinel, Standalone or Cluster, which is best for session?

Which setup is more preferable for session using Redis? Since the session data will result and force all user to session if down, is it good choice to use stand alone? Since this allows quick recovery with minimum resources. Or having cluster will…
gk.
  • 338
  • 5
  • 15
0
votes
1 answer

Redis sentinel failover configuration issue

I have using Redis-Sentinel architecture on my enviroment. I have 3 different servers. I installed and configured redis and sentinel both of them. Basically i have three redis and 3 sentinels run on 3 server at the same time. All servers run on…
0
votes
0 answers

Exception getting Resource from Jedis pool when connecting via Redis Sentinel nodes

I am seeing an error when trying to connect to Redis Sentinel Nodes from Spring boot app. It works fine when I connect directly to Redis Master Node from Spring Boot app without using sentinel nodes. At App Startup I see the below in the…
Good Samartian
  • 103
  • 1
  • 3
  • 8
0
votes
0 answers

Sentinel daemon from init.d in Alpine linux not stopping

I've installed a fresh Alpine linux and setup Redis by using the command apk add redis Now the installer doesn't have give us a /etc/sentinel.conf so I manually created one by copying the /etc/redis.conf. port 26379 dir /var/lib/redis bind…
Soham Dasgupta
  • 5,061
  • 24
  • 79
  • 125
0
votes
2 answers

Can i just use 2 Redis/Sentinal servers to manage failover on my 2 server setup?

I forgive me for my shallow knowledge, but I have not to figure out why I need 3 servers to manage fail-over with Redis? I have a application served under load-balancer with to server instances, and I am looking to setup Redis for session &…
Aditya T
  • 1,566
  • 2
  • 13
  • 26