This repository has been archived by the owner on Mar 10, 2019. It is now read-only.
As Sentinel doesn't support AUTH command (as of Redis 4.0.7), passwor… #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
Context: 3 nodes under Debian Strech with backports (redis 4.0.7) with sentinel and redundis and an application which need to connect to a Redis server (a master with slaves in replication mode/auto-failover).
With redis configured without requirepass there is no problem.
But with requirepass set up :
./redundis -m mymaster -p ********************************************
2018-04-19 12:32:08 [redundis] INFO Listening on '127.0.0.1:6379'
2018-04-19 12:32:08 [redundis] INFO Monitoring master...
2018-04-19 12:32:08 [redundis] ERROR Failed to update master - Failed to reach sentinel - ERR unknown command 'AUTH'
The "missing" AUTH command on sentinel is known: redis/redis#3279 (comment) , so connecting to sentinel with NOAUTH is actually mandatory.
Sentinel could be fixed with redis/redis#3329
Until it append, this is a little PR as AUTH must only be used for Master (not on Sentinel) and as a result argument --sentinel-password doesn't make send but --master-password does