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
Does redis-on-python support sentinel connections? #589
Comments
Hi @BigDuke6nc - I'm combing through the backlog and saw this issue As far as I can tell it doesn't look like Redis OM was ever set up to receive sentinel clients (which it needs in order to connect to them correctly). For some background the target environment for Redis OM is Redis Cloud/Redis Enterprise both of which achieve HA without a client needing to hassle with Sentinel connections. This isn't meant to be a sales pitch (though feel free to buy our products), nor is that to say we'd never support it, there just is pretty minimal demand for sentinel in general. Going to leave this open for now. |
I use Sentinel and there are no issues with it models:
piece of get_redis:
|
Thanks for answer @DennyD17 - looks like this should work for you @BigDuke6nc - feel free to re-open if it doesn't |
I have been trying to get a connection to the master after getting it from the sentinel using sentinel.master_for()
This returns a Redis client as far as I can tell but when I try to set the Meta database to the return value I get connecting to localhost:6379. Connection refused. The connection is ignoring the master connection I am getting back from the sentinel. Whenever I connect using the same connection info and do a master.json().set() I have no issues. Can we not use this OM package in sentinel environment?
The text was updated successfully, but these errors were encountered: