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

StringSetAsync with When.NotExists returns false when key doesn't exist

I am using StackExchange.Redis with a replica cluster (3 nodes) configured to use Sentinel. I get multiple requests trying to update the cache with the same data, so to avoid multiple writes, I am using When.NotExists in StringSetAsync. My…
TGH
  • 38,769
  • 12
  • 102
  • 135
4
votes
1 answer

Spring Data Redis Lettuce Connection Issue

I have spring boot application with MYSQL DB and i am caching the data in Redis in server layer with @Cacheable Annotation @Cacheable(value= "employeeCache", key= "#customerId") @Override public Customer getEmployee(String customerId) { …
Kuldeep
  • 599
  • 11
  • 28
4
votes
2 answers

MasterNotFoundError using redis-py when connecting to Redis Sentinel Cluster

I'm facing a MasterNotFoundError when I try to connect to the master node by following the deployment guide here: https://docs.bitnami.com/tutorials/deploy-redis-sentinel-production-cluster/ My code to connect to the master Redis Sentinel node…
phatasma-coder
  • 133
  • 1
  • 5
4
votes
2 answers

Java client can't connect to Redis Sentinel which is running on localhost

I have setup 3 Redis Server and 3 Redis Sentinel instances in my localhost. The servers are running at: 127.0.0.1:6379 // Master 127.0.0.1:6380 // Slave 127.0.0.1:6381 // Slave and the sentinels are running…
Shubham
  • 2,847
  • 4
  • 24
  • 37
4
votes
2 answers

Get redis master sentinels

I am trying to get a list of all sentinels which are currently monitoring the redis master. I know that if I have one sentinel I can use sentinel sentinels mymaster but if I don't have any of the Sentinel's addresses how can I get them?
Tomer Amir
  • 1,515
  • 4
  • 27
  • 54
4
votes
0 answers

Can I use a load balancer in front of redis sentinels?

We run a container environment (Kubernetes) and we have a set of redis sentinels that watch over a bunch of redis instances. Since it's a containerized environment, configuration is mostly dynamic. A sentinel container might die, another one…
Draiken
  • 3,805
  • 2
  • 30
  • 48
4
votes
3 answers

Create a redis sentinel cluster in Kubernetes, the redis master can not get the slave origin IP

I use the K8s example the create a Reliable, Scalable Redis on Kubernetes. https://github.com/kubernetes/kubernetes/tree/master/examples/redis The Redis master needs to get slave the origin IP and register to the sentinel. Sentinel will use to…
zhulinhong
  • 51
  • 1
  • 3
4
votes
2 answers

Using Redis Sentinel from c#

I have a master-slave configuration with two slaves and three sentinels. If I try the commands with command-line everything is ok. But I have some problems configuring it for C#. I am using StackExchange.Redis library. But I don't understand what I…
ayasha
  • 1,221
  • 5
  • 27
  • 46
4
votes
0 answers

Redis services loses connection every day in same time

We use a Redis (version 2.8) with Windows in our production servers. And have next "master-slave"configuration: 3 services in separate servers (1 master and 2 slaves) 3 sentinels in each server Until we do not have a lot of loading and big size…
Andrey Zhminka
  • 243
  • 4
  • 16
4
votes
1 answer

Getting "No Redis Sentinels were available" when access redis from remote server using ServiceStack.Redis client version 4.0.44

We have a redis configuration with two redis servers. We also have 3 sentinels to monitor the two instances and initiate a fail over when needed. We get the following issue intermittently from some of our…
jakejgordon
  • 4,008
  • 7
  • 36
  • 45
4
votes
3 answers

How to connect to redis deployed on Google Cloud?

Case Basics: Deployed a redis instance (single instance) in Google Cloud. Using NodeJS based server and redis-sentinel library to connect to the node. Reason being sentinel based management of nodes on google cloud. I can login in the redis instance…
Vikram Tiwari
  • 3,615
  • 1
  • 29
  • 39
3
votes
1 answer

redis-sentinel connection error in django with "AUTH called without any password configured for the default user. Are you sure ..."

I have a problem with the redis-sentinel connection. I tried to connect redis-sentinel by using django-redis. # redis connection factory DJANGO_REDIS_CONNECTION_FACTORY = 'django_redis.pool.SentinelConnectionFactory' # These sentinels are shared…
Kim Juyeon
  • 31
  • 4
3
votes
0 answers

Spring Boot + Lettuce + Redis-Sentinel without own beans?

In our Spring Boot-App, we are using Spring Data and Spring Cache together with Lettuce to connect to a REDIS-Cluster. We are currently switching to a Sentinel-Connection-setup. We are asking ourselves if there is another way to setup…
Sidekick.John
  • 183
  • 3
  • 14
3
votes
0 answers

Redis lettuce setup for using asyncRedisCommands on redis sentinel

My setup as follows: I am running this setup on the spring application. I am using the lettuce module's RedisAsyncCommands. I was able to run it using a stand-alone Redis config. When I try to run it using the sentinel mode it's getting stuck…
sharath
  • 33
  • 5
3
votes
1 answer

Cannot Start Sentinel

Getting below error when starting sentinel. anyone can help, please. *** FATAL CONFIG FILE ERROR *** Reading the configuration file, at line 69 >>> 'sentinel monitor My_Master xx.xx.xxx.xxx 61010 2' sentinel directive while not in sentinel mode
Azmy
  • 181
  • 3
  • 17
1 2
3
21 22