Skip to content

redis.sentinel.SlaveNotFoundError: No slave found for 'mymaster' #249

Discussion options

You must be logged in to vote

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',
}

}
)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@alelomonaco
Comment options

@zzzeek
Comment options

@zzzeek
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by alelomonaco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #248 on December 20, 2023 15:36.