You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,15 +120,25 @@ but a few so that if one is down the client will try the next one. The client
120
120
is able to remember the last Sentinel that was able to reply correctly and will
121
121
use it for the next requests.
122
122
123
-
If you want to [authenticate](https://redis.io/topics/sentinel#configuring-sentinel-instances-with-authentication) Sentinel itself, you must specify the `password`option per instance.
123
+
To [authenticate](https://redis.io/docs/management/sentinel/#configuring-sentinel-instances-with-authentication) Sentinel itself, you can specify the `username` and `password`options per instance. Exclude the `username` option if you're using password-only authentication.
If you specify a username and/or password at the top level for your main Redis instance, Sentinel will default to using those credentials. You can pass nil or override them for each sentinel.
133
+
134
+
```ruby
135
+
# Use 'mysecret' to authenticate against the mymaster instance, but skip authentication for the sentinels:
0 commit comments