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

Using RedisSentinelConfiguration doesn't fail over to the next available sentinel/master

I'm trying to setup HA for my redis instances using redis-sentinel. I assume my java application has to be using RedisSentinelConfiguration for creating a connection factory. Hence I have setup the connection factory like below @Bean(name =…
1
vote
1 answer

How to add Redis sentinel to my already existing master-slave Redis?

Here is my situation : I have an existing master-slave Redis architecture (2 different servers). I want to add Redis sentinel to be able to use the automatic failover, but I don't want any downtime in production. As sentinel needs to know the…
Popinou
  • 384
  • 1
  • 8
1
vote
1 answer

How to disable sentinel auto-slaveof when the previously dead redis-master is online again

I have a question about redis sentinel when there is a network partition I started a redis server on server01 as master and a server on server02 as slave, there was a redis sentinel on another server, I setup a script to make the client point to the…
Papulatus
  • 677
  • 2
  • 8
  • 18
1
vote
1 answer

Is automatic failover built into Redis 2.8?

I am planning on adding Redis to our application as a session and cache store. I have been looking at how to make Redis highly available on an on-premise hosted solution. The standard approach appears to be to set up Redis as a 3 node replica and…
Tariq
  • 1,449
  • 2
  • 14
  • 17
1
vote
1 answer

ServiceStack.Redis.Sentinel Usage

I'm running a licensed version of ServiceStack and trying to get a sentinel cluster setup on Google Cloud Compute. The cluster is basically GCE's click-to-deploy redis solution - 3 servers. Here is the code i'm using to initialize... var hosts =…
1
vote
1 answer

How to switch masters in this Redis Sentinel configuration?

I have the following Redis/Sentinel configuration: Redis master A + N slaves M sentinels watching A, named masterA the client application query the sentinels for masterA, then query and modify A Now say A is outdated and I want to replace it by a…
usual me
  • 8,338
  • 10
  • 52
  • 95
1
vote
1 answer

How to manage a situation where designated redis master on a cluster is down on startup

As I understand it if redis is to run on a cluster of machines, there will be several slaves and one master. And slaves can be made to connect to the master upon startup with a command. And then sentinels on each machine on the cluster could connect…
Osada Lakmal
  • 891
  • 2
  • 8
  • 22
1
vote
1 answer

Redis replication config

I have a redis master setup with 2 slaves and a sentinal on each. If the master goes down for say 2 seconds (+sdown) and comes back up (-sdown), it reads the last snapshot, and the slaves resync with the master. The problem with this is that…
1
vote
2 answers

how to replace the master in nutcracker.yml when it shutdown (twemproxy,redis)?

I am using twemproxy for sharding. In nutcracker.yml file, I have placed all the masters. Then i made multiple slaves of these masters. I am using redis-sentinel to monitor all the masters. Redis-sentinel is doing perfectly well. When one of the…
Jagveer Singh
  • 584
  • 7
  • 28
0
votes
0 answers

Redis cli auth times out for redis sentinel

I'm having a problem with Redis Sentinel. I deployed on my Kubernetes environment the Redis HA mode with Sentinel offered by bitnami. Up until a few days ago everything was working fine and I could connect to both sentinel container and redis. Since…
0
votes
0 answers

The data flushing in redis unexpectedly

I have a very strange crash. I have a redis cluster (two nodes) with sentinel. Every 5 minutes I have file synchronization process to the disk. I am starting receive an error from redis in java code and in a half of an hour all data was erased. All…
SiJey
  • 169
  • 1
  • 4
  • 9
0
votes
1 answer

Redis Cluster/Sentinel on Kubernetes

I currently have some redis running on different VM's for different applications and I would like to centralize it, to facilitate maintenance and have high availability. I'm using TCPIngress from the kong ingress controller With that, I'm trying to…
0
votes
1 answer

sentinel_user in users.acl not working with limited permission in redis 7

I am trying to have a sentinel_user acl user in users.acl file that will have limited permission to run commnads related to sentinel only. I tried setting this user as below following redis documentaion : ACL SETUSER sentinel_user ON nopass…
anand
  • 1
  • 1
0
votes
0 answers

Redis replication vs Redis Sentinel in k8s

Redis provides a basic replication mechanism and more advanced Redis Sentinel. As far as I understand the main advantage of the Sentinel is high availability. If the master node fails, the sentinel will automatically detect it and promote a slave…
0
votes
1 answer

Redis is working with Python but not with nodeJS

I have below code in Python3 which is working well import redis sentinel_host = '10.3.0.151' sentinel_port = 26379 sentinel = redis.Redis(host=sentinel_host, port=sentinel_port) masters = sentinel.sentinel_masters() for master_name, master_info…