Questions tagged [redis-sentinel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Redis Conf symlinks problems

Is there any way that I can set up a symlink to /etc/redis.conf to a different location than /etc/redis/redis.conf and work? Let's say I have the file in my local directory, and instead of copying the ...
0 votes
0 answers
15 views

H3C server requirement [duplicate]

I am searching for a server that can best fulfill my requirements. I need it specifically for the best DB I/O performance for a 10-million record database. I am looking for generation-specific details ...
0 votes
0 answers
95 views

Having two datacenters with two virtual servers at each, what is the suitable redis topology for high availability?

I have two data centers, A and B, which has two virtual servers at each site. We have connectivity between the two sites. I'm planning to deploy one redis HA cluster with two masters and two slaves. ...
1 vote
0 answers
146 views

Redis sentinel not switching back to master

here is my setup 10.1.0.2 - Master (slave-priority 10) 10.1.0.3 - Slave (slave-priority 100) 10.1.0.2 - Sentinel1 10.1.0.3 - Sentinel2 10.1.0.4 - Sentinel3 The failover is working as expected when ...
1 vote
1 answer
812 views

Redis Sentinel with TLS - how to get node FQDN rather than IP?

This may be a Serverfault or a Stack Overflow question, I'm not sure yet: I've set up a simple three node Redis system with a master and two replica nodes, managing failover with Redis Sentinel. Redis ...
2 votes
1 answer
6k views

redis sentinels with docker-compose

so I have this kind of docker-compose version: '3.8' x-base: &base image: redis:latest x-base-sen: &base-sen image: redis:latest command: redis-sentinel /sentinel/sentinel.conf --...
1 vote
1 answer
3k views

Redis Sentinel not respecting announce-ip option

I am attempting to create a redis-sentinel cluster using docker-compose on my system and have it visible to the host machine (this is to try and replicate an application that is going to use redis-...
0 votes
1 answer
197 views

Change Redis Sentinel offered port

I have set up three Redis servers using Bitnami Docker images. Both plain and TLS ports have been configured for Redis and Sentinel. How does Sentinel determine which Redis Master port (TLS or plain) ...
11 votes
1 answer
63k views

How to turn off 'protected-mode' in Redis?

I'd like to disable protected-mode on my production Redis. Regarding to the following error I got from my other Redis-Sentinel instance I could disable it live by connecting to Redis from the master ...
1 vote
0 answers
620 views

Redis Sentinel cannot connect to Master that is using password - Redis 6.2 (dockerized)

I have dockerized images of redis (as official dockerhub guides when using custom redis.conf) and custom image (based on alpine image see here: https://pastebin.com/9WsMk1JC ) of sentinel (also with ...
0 votes
0 answers
2k views

Redis-cli --cluster create command is not working?

I have redis-server package through standard apt command, but when I'm trying to run redis-cli --cluster create its not working. I'm getting "Unrecognized option or bad number of args for: '--...
0 votes
1 answer
154 views

rspamd redis sentinel time out

Since some time we are running rspamd and redis (and sentinel) with a separate DB for most modules. Data seems to be written to the databases but for some reason we get errors like "cannot get masters ...
0 votes
0 answers
614 views

How to migrate a standalone Redis instance to a Kubernetes Master/Slave replication

I'm migrating an application from a single server to a Kubernetes cluster. I'm no really sure what's the best option to migrate the Redis service, therefore I'd like to get the advice of anyone :) I ...
1 vote
1 answer
9k views

Redis Sentinel Systemd services failing to start on Ubuntu 16.04 and CentOS 7

Having trouble getting my Redis sentinel systemd services to start. I can run sentinels manually with success -- e.g.: root@poolwc:/etc/redis# redis-sentinel ./sentinel.conf --sentinel Three redis ...
2 votes
3 answers
5k views

Redis Sentinel Configuration and Hostnames

I have 2 sentineles and 2 redis servers. I want to configure sentinels using hostnames of redis servers. Currently, I define each hostname in hosts file like this. 10.22.20.156 clsupport1 10.22....
4 votes
1 answer
13k views

Redis sentinel: force switch to another master

Context: I have 3 redis nodes, and 3 sentinels. The failover works properly. When I'm taking the master down, another master is elected. Need: I need a way to test the behavior, to make sure ...
0 votes
1 answer
4k views

redis-sentinel Docker container can't resolve master instance hostname

I'm trying to set up redis-sentinel from bitnami and I'm getting the following error: redis-sentinel_1 | nami ERROR Unable to start com.bitnami.redis-sentinel: redis-sentinel_1 | *** FATAL ...
0 votes
1 answer
535 views

Redis taking too much memory

I setup a Redis (version 4.0.6) sentinel cluster in two centos 6 VMs. Both master and slave Redis server has maxmemory set to 10GB and maxmemory_policy as volatile-lru. The problem is, both servers ...
2 votes
1 answer
3k views

Installer for Redis Sentinel on Ubuntu 16.04 LTS

I've installed Redis server v=4.0.6 on Ubuntu 16.04 LTS from Chris Lea's PPA. It works great and I set up 2 Slaves. All is good. -- Now I want to install and configure Redis Sentinel, but I can't ...
1 vote
1 answer
3k views

HAProxy for Redis Sentinel: want BACKUP, not DOWN

I configured an HAProxy service for my Redis Cluster installation (3 nodes with Redis Sentinel managing the master delegation) and it works good: clients are redirected only to the master node and ...
1 vote
1 answer
2k views

Redis Client not connecting to Redis server via HAProxy

I'm facing an issue while connecting to Redis server via HAProxy using Jedis as a redis client. Everything works fine when Redis server is directly connected to but, the same is not working via ...
3 votes
0 answers
1k views

Redis - Manual failover works but Automatic doesnt

I have a node Redis cluser with 1 master and 2 slaves. Sentinel is running on all of them. master 172.29.245.6 slave1 172.29.240.163 slave2 172.29.225.104 With my master up, this is the status of my ...
1 vote
1 answer
249 views

How to find limits of clustered Tomcat with Session Replication

I am working on a Tomcat cluster experimentally because of it may be need for us production environments. It must be scaleable, high available and support as much as multi concurrent users. Because of ...
5 votes
2 answers
4k views

Redis Sentinel does not take action when the master goes down

I am trying to setup a Redis/Sentinel setup across 3 nodes, each of them running one redis instance and a sentinel instance. However, when the master machine goes down, the remaining sentinels just ...
1 vote
0 answers
592 views

HAProxy health check consecutive counts not resetting

We have two Redis servers behind an HAProxy server. One server is the master, which is up, and the other is the slave, which is down. If the master goes down, the sentinels elect the other server to ...
1 vote
2 answers
7k views

Redis: failing failover - sentinels can't elect new master node

I've set up four server and sentinel instances on four different virtual machines in a simple master-slave setup. The key replication works fine, and all redis nodes recognized each other (I'm ...
0 votes
1 answer
1k views

redis sentinels in AWS and static IPs

I want to set up a 3-instance sentinel cluster in AWS and then have a master and standby redis instance controlled by the sentinel cluster. The question is how to deal with DHCP in an AWS VPC. Since ...
1 vote
1 answer
2k views

Cannot set password for redis sentinel 3.2

I tried to set up redis sentinel to make it has high availability and support fail over. I begin by setup the redis replication (1 master and 2 slaves in 3 ec2-instances) And after that, i install ...
1 vote
0 answers
2k views

Redis master-slave "connection lost" error

I have two docker machines: $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS redis-master * virtualbox Running tcp:/...
1 vote
0 answers
677 views

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. ...
4 votes
1 answer
8k views

Redis sentinel + HAProxy failover

I am looking to implement a HA redis implementation using Master-Slave redis servers. The web servers will connect to these through an HAProxy instance installed on each box. The situation is easy ...
3 votes
2 answers
865 views

Static master in Redis replication

I'm running replicated Redis that includes a master and just one slave. My goal is to implement a replication (using Redis sentinels) in which the slave becomes master when the master goes down, but ...