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
179
votes
8 answers

Redis sentinel vs clustering

I understand redis sentinel is a way of configuring HA (high availability) among multiple redis instances. As I see, there is one redis instance actively serving the client requests at any given time. There are two additional servers are on standby…
ravindrab
  • 2,712
  • 5
  • 27
  • 37
20
votes
1 answer

How can I support the Redis sentinel architecture using StackExchange.Redis?

My application uses the StackExchange.Redis package and I started using the sentinel architecture in order to support high availability and failures. I've search the web, trying to find the correct way I should use the ConnectionMultiplexer object…
Amir Popovich
  • 29,350
  • 9
  • 53
  • 99
12
votes
1 answer

How can you disable protected mode in Redis 3.2.6 Sentinel?

I have attempted everything recommended by the following error message: (error) DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this…
pestilence669
  • 5,698
  • 1
  • 23
  • 35
12
votes
1 answer

What's the difference between open source Redis cluster and Redis labs enterprise cluster?

We are planning to use Redis as centralized and highly available cache so we looked at Redis Labs Enterprise Cluster and homegrown Cluster-like setup using Redis along with twemproxy and sentinel. While researching about RELC we stumbled upon this…
ThinkFloyd
  • 4,981
  • 6
  • 36
  • 56
9
votes
1 answer

Redis sentinel failover configuration in docker swarm

Description I'm trying to create a Redis cluster in a docker swarm. I'm using the bitnami-redis-docker image for creating my containers. Going through the bitnami documentation they always suggest to use 1 master node as opposed to reading the…
Soham Dasgupta
  • 5,061
  • 24
  • 79
  • 125
9
votes
1 answer

Can the WAIT command provide strong consistency in Redis?

Greetings overflowers, In Redis sentinel/cluster setup, can we use the WAIT command with the total number of slaves to ensure strong consistency across the Redis servers? Why not? Kind regards
geeko
  • 2,649
  • 4
  • 32
  • 59
9
votes
4 answers

Redis sentinels in same servers as master/slave?

I've been doing some reading on how to use Redis Sentinel, and I know it's possible to have 2 or more sentinels, and load balance between them when calling from the client side. Is it good practice to have these 2 sentinels in the same server as my…
Henley
  • 21,258
  • 32
  • 119
  • 207
9
votes
2 answers

Redis sentinel docker image / Dockerfile

I'm looking to deploy high availability Redis on a coreOS cluster, and I need a Redis Sentinel docker image (i.e. Dockerfile) that works. I've gathered enough information/expertise to create one (I think)... but my limited knowledge/experience with…
joshula
  • 535
  • 1
  • 5
  • 19
8
votes
4 answers

redis-sentinel throws error: " Can't resolve master instance hostname."

I'm starting up redis and sentinel nodes using the below configurations. I start the redis node first and when I start Sentinel, if fails with the error: sentinel_node | sentinel_node | *** FATAL CONFIG FILE ERROR *** sentinel_node | Reading the…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
8
votes
1 answer

Redis Upgrade from 3.0.7 to 5

I have plenty of Sentinel and Cluster servers running 3.0.7 and need to upgrade to 5. I cannot afford downtime. Can someone please advice me how to do it? Some DBs are so big that the servers cannot allocate a new/second instance in case of the best…
Jirene
  • 151
  • 3
  • 9
8
votes
2 answers

Using jedis how to write to a specific slot/node in redis cluster

I'm trying to improve the performance of writing data to redis cluster. We are planning to move from redi-sentinel to cluster mode for scalability. But, the performance of write operations is very less compared to redis-sentinel. We leveraged…
barath
  • 762
  • 1
  • 8
  • 26
8
votes
1 answer

Supporting Slave of Slave Replication with Redis Sentinel?

We have two datacenters, each with two redis instances. Generally they are replicated as chain. NY1 (Master) --> NY2 (Slave) --> CO1 (Slave) --> CO2 (Slave) NY is New York and CO is Colorado, our backup datacenter. In order to save bandwidth over…
Kyle Brandt
  • 26,938
  • 37
  • 124
  • 165
8
votes
1 answer

how to set a timeout for redis-cli command?

I have a health check I'm trying to use that executes the redis-cli command from the redis servers to the redis-sentinels remotely. redis-cli -h 10.10.10.10 -p 26379 SENTINEL MASTER testing There is a logic that sorts out whether there is a quorum…
numb3rs1x
  • 4,673
  • 5
  • 31
  • 44
8
votes
2 answers

Redis sentinel doesn't auto-discover other sentinels

I have redis configured as master with two slaves, each on a separate box. I also have a sentinel process running on each box. It's the setup as described in the documentation…
nerdherd
  • 2,508
  • 2
  • 24
  • 40
8
votes
2 answers

How to do a redis FLUSHALL without initiating a sentinel failover?

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 currently have a process where we periodically have to do a FLUSHALL on the redis server. This is a…
jakejgordon
  • 4,008
  • 7
  • 36
  • 45
1
2 3
21 22