-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Problem with get slave via sentinel. #673
Comments
I guess that you want to use slave(s) for read only commands. If that is the case I would recommend you to use Redis Cluster and enable |
Okay, but I don't want to configure cluster stack. May be will be good to implement parameter for get random slave instead of getting master permanently. |
I do not know how to do it |
Closing since I don't understand what you are trying to achieve and there is no good place for method like "slave_for". |
Im trying to do the same it was asked here, get a sentinel slave in order to split reads/writes. haven't found a way of doing it with this library. btw the closing reason doesn't seems to be appropriated. |
#997 looks promising, but it requires more work. |
@vmihailenco I'm happy to work on that if you give it a review and could help me understand your build pipeline |
I have the same need, namely, route all read commands to slaves. |
Any workaround to resolve it? Write on master and read from slaves is a common approach for applications that don't need sharding data but have a high throughput. It will be good if we have a alternative to do it. |
How to get a slave instance via sentinel.
For example https://github.com/andymccurdy/redis-py have method "slave_for" that return client object with slave host.
How to get something same using this library.
I don't found anything about in a documentation.
Thanks for help.
The text was updated successfully, but these errors were encountered: