-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Sentinel master discovery uses the wrong command #626
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
Comments
IMHO you are right, current implementation is not right. Also I can see a variable called
This must be fixed, but Im concern that we are going to broke the compatibility. Thoughts @andymccurdy ? |
This issue is marked stale. It will be closed in 30 days if it is not updated. |
This bug is still present and IMO this issue should not be closed. The current master should be determined by |
@abrookins Would highly appreciate you taking a look at this one. I feel like the correct change was done here: https://github.com/er0k/redis-py/pull/3/files#diff-9d65b3446d551c0ed9e7bb0a16cf7b31f8b94c1024b9bf05afaa63ce70950019R195 Thanks! |
Bump! I'm face the same issue, after 6 years bug still present |
This issue is marked stale. It will be closed in 30 days if it is not updated. |
This is not stale, it's needs maintainer attention... there's a fix suggested ☝️ |
https://redis.io/docs/reference/sentinel-clients/ This should be looked into still. I currently pass a loadbalancer to redis-py and it always picks a replica instead of the master. I loose my high availability if the master crashes/goes down if I specifically only select the master. |
Looks like support for this was introduced 2 years ago in #1636 by @chayim Realistically @PKizzle we should be able to change sentinel.py to use |
This issue is marked stale. It will be closed in 30 days if it is not updated. |
This is not stale, it's needs maintainer attention... there's a fix suggested ☝️ |
I'd love to understand the state of this heading into 2025. I'm patching I'm willing to roll up my sleeves if this is stuck because er0k#3 doesn't meet some of the contributing requirements / needs some additional, but would love to understand if doing that would be helpful before investing the time. |
SENTINEL masters
is used to discover the master for a given cluster, whereasSENTINEL get-master-addr-by-name
should be used instead.See https://github.com/antirez/redis/issues/2615 for the issues that this causes.
The text was updated successfully, but these errors were encountered: