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

Sentinel configuration file

When adding a master to Sentinel, I always add the entries by editing sentinel.conf, but I often find out that application is being rewritten by another user (Sentinel). I'm wondering if there is a more appropriate and an efficient way to add hosts…
Taleeb
  • 125
  • 1
  • 8
0
votes
1 answer

Can twemproxy load balance read requests?

I want to use redis with master and slaves. I.e. several shards. Each shard has one master and several slaves. Is it possible to configure twemproxy to use masters to write and slaves to read? Or all requests will go to the master?
Oleksandr
  • 3,574
  • 8
  • 41
  • 78
0
votes
2 answers

Redis Slave - Sending command to master in replication handshake: -Writing to master: Unknown error

I'm a bit new to setting up redis sentinel but followed several online posts about it and it seemed fairly simple. I'm getting the following error on any of my slaves when I start them up. Below is the error and the configs on each machine. They…
Bob Manz
  • 106
  • 2
  • 8
0
votes
1 answer

Redis Sentinel with 2 master after multi az netsplit

Hello stack community, I have a question about Redis sentinel for a specific problem case. I use AWS with Multi AZ to create a sensu cluster. On eu-central-1a I have a sensu+redis(M), a RBMQ+Sentinel and 2 others Sentinels. Same on eu-central-1b…
Ammonium
  • 1
  • 2
0
votes
1 answer

PHP predis connect to Redis Sentinel

I've set up a new PHP predis connection to a redis server using the documented code. I can verify it's connected ok, but I don't know how to simply test if the connection exists. $options = array( 'scheme' => 'tcp', 'host' => '127.0.0.1', …
user101289
  • 9,888
  • 15
  • 81
  • 148
0
votes
1 answer

Fail-over for Redis replica set, Celery

We're running a flask application and we do all our heavy processing with celery. We use a redis instance from amazon to be our message broker. We just had a fail, causing much pain and bleeding, so we're looking into fail-over strategies. The first…
0
votes
1 answer

Sentinel work fail after rename config command of redis

I've installed stablest redis(ver 3.2). Everything work fine until I renamed CONFIG command of redis, sentinel could not promote slave to be master. Think the problem is sentinel still use CONFIG command (has been renamed) to change configuration of…
Quyen Le
  • 1
  • 2
0
votes
2 answers

Redis Sentinel Configuration not working

I am trying to set up sentinel using two redis nodes. Please find inline the conf file. port 16371 dir "C:\Program Files\Redis\16371\" loglevel notice logfile "C:\Program Files\Redis\logs\16371.log" sentinel monitor ExampleMaster 127.0.0.1 6371…
krishnagjs
  • 1
  • 1
  • 3
0
votes
3 answers

How to switch redis master in sentinel configuration

I have a redis sentinel configuration with one master, two slaves and 3 sentinels running. I noticed that at some point the sentinels may switch the master electing one of the slaves as master. This is causing problems to an application which is…
Srini Kandula
  • 981
  • 2
  • 18
  • 47
0
votes
1 answer

How to pass JS Object to its own event parameter in redis - sentinal on connect event

In redis sentinel client program - first program, when i keep the redis sentinel object to be created and it works fine to set the KEY . But when you observe the second program , client.on('connect', runSample(client)); I am passing the client…
Raj Rajen
  • 203
  • 2
  • 17
0
votes
1 answer

Redis-Sentinel with Redis whose CONFIG command is renamed

The CONFIG command is renamed to CONFIG_2267bccb973c432d96a26e96ca50860a As I know, Redis-sentinel relies on this command, yes? How can configure redis-sentinel to use the renamed command?
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
0
votes
5 answers

Redis Sentinel master not downgraded to slave immediately

I have an architecture with three Redis instances (one master and two slaves) and three Sentinel instances. In front of it there is a HaProxy. All works well until the master Redis instance goes down. The new master is properly chosen by Sentinel.…
Damian
  • 593
  • 6
  • 27
0
votes
1 answer

Redis sentinel failover config change

I have a Redis cluster configuration with a master and 2 slaves. I want to enable AOF (fsync:always) on the master for full durability, while RDB in both the slaves. My question is, in case the master fails, and one of the slaves is chosen as the…
ptntialunrlsd
  • 794
  • 8
  • 23
0
votes
1 answer

how to failover Redis with Django

What I want to do is to failover Redis with Django, but cannot find the way to do it. What I've setup is as follows: I'm using Redis as a session backend. I've setup two Redis servers in master-slave relationship that when master fails, slave…
user2875308
  • 451
  • 5
  • 14
0
votes
1 answer

Redis Sentinel and fix-slave-config: Redis node is getting set as slave of two masters when it should not be

I'm trying to use sentinel for failover in large redis fleet (12 sentinels, 500+ shard of one master and one slave each). I'm encountering a very strange issue where my sentinels repeatedly issue the command +fix-slave-config to certain redis nodes.…
nflacco
  • 4,972
  • 8
  • 45
  • 78
1 2 3
21
22