Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis Sentinel Authentication Problem and Replication Failover #4318

Open
ghovat opened this issue Sep 19, 2017 · 0 comments
Open

Redis Sentinel Authentication Problem and Replication Failover #4318

ghovat opened this issue Sep 19, 2017 · 0 comments

Comments

@ghovat
Copy link

ghovat commented Sep 19, 2017

Hi,

I found two problems, my Config File is below. I have a Ubuntu 16.04 Redis Cluster with:

  • Redis Master + Sentinel
  • Redis Slave 1 + Sentinel
  • Redis Slave 2 + Sentinel
  1. If I set in the sentinel Config credentials i can not authenticate to the server. If I use the -a parameter or the AUTH Command I get the error that the command not exist?

  2. The failover is not working. The replication work fine but if I turn of the master (still 2 slaves remaining) I get:


28099:S 19 Sep 15:48:31.954 * MASTER <-> SLAVE sync started
28099:S 19 Sep 15:48:31.954 # Error condition on socket for SYNC: Connection refused
28099:S 19 Sep 15:48:32.957 * Connecting to MASTER 10.0.1.178:6379
28099:S 19 Sep 15:48:32.957 * MASTER <-> SLAVE sync started

From my config the election could be made after 5 seconds, but also after 5 minutes it prints out the log above.
Is test currently without the configuration because as described in point 1 its not possible to connect

Here is my Sentinel Config:

bind 127.0.0.1 {{ grains['private_ip'] }}
port 16380

daemonize yes
pidfile "/var/run/redis/redis-sentinel.pid"
loglevel verbose
logfile "/var/log/redis/sentinel.log"

#requirepass {{ pillar.get('redis_password') }}
#masterauth {{ pillar.get('redis_password') }}

sentinel monitor gitlab-redis {{ pillar.get('REDIS_MASTER_IP') }} 6379 2

#sentinel auth-pass gitlab-redis {{ pillar.get('redis_password') }}

sentinel down-after-milliseconds gitlab-redis 5000
sentinel parallel-syncs gitlab-redis 1
sentinel failover-timeout gitlab-redis 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant