redis.sentinel.SlaveNotFoundError: No slave found for 'mymaster' #249
-
Name and Version What steps will reproduce the bug? Deploy a Redis cluster with sentinel and auth enabled, create a script to call sentinel host and retrieve data from cache:
Are you using any custom parameters or values?
What is the expected behavior? What do you see instead? Additional information I've tried to add decode_responses parameter, same result. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
hi - unfortunately I know nothing about this driver or what might be causing your problem. can you perhaps inspect and/or debug the source code for dogpile's connector directly to see what parameters are not being passed in the way expected? in particular I notice you are using a parameter "decode_responses", that we dont seem to have. thanks |
Beta Was this translation helpful? Give feedback.
-
fixed adding also connection kwargs. sentinel password is used to connect to sentinel but to connect to the master node connection kwargs has to be set. If user is default, username field can be omitted. cache_region = dogpile.cache.make_region().configure( |
Beta Was this translation helpful? Give feedback.
fixed adding also connection kwargs. sentinel password is used to connect to sentinel but to connect to the master node connection kwargs has to be set. If user is default, username field can be omitted.
cache_region = dogpile.cache.make_region().configure(
'dogpile.cache.redis_sentinel',
arguments={
'sentinels': [
['redis-cluster', 26379],
],
'sentinel_kwargs': {
'password': 'mypassword',
}
'connection_kwargs': {
'password': 'mypassword',
}
}
)