0

I am running redis on 3 VMs. When authentication (requirepass, masterauth) is disabled, a slave will be promoted to be the master, but when I put authentication on it, no slaves are being promoted.

Here is my setup

VM1 - 192.168.1.1 /etc/redis/redis.conf

protected-mode no
requirepass testpass

VM2 - 192.168.1.2 /etc/redis/redis.conf

protected-mode no
masterauth testpass
slaveof 192.168.1.1 6379

VM3 - 192.168.1.3 /etc/redis/redis.conf

protected-mode no
masterauth testpass
slaveof 192.168.1.1 6379

What am I missing here?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.