Check if redis cluster mode is enabled #446
-
redis-py-cluster version - 2.1.0 I am looking for a graceful way to check whether it is enabled. At the minute it will throw a RedisclusterException which is nice enough but then an AttributeError is thrown from upstream
I have found this ticket redis/redis-py#1339, I am already using 3.5.3 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@sophiamariem Have you tried out the latest master commits to see if it is different in there? This error you write about should be fixed in there as if i run the following that is trying to connect to a redis-server instance that do not have cluster mode enabled i get the following stacktrace
This error should server as a good answer to the core question that how to check if it is enabled. However this is not really a gracefull way to do it, but my only suggestion that if you need to check each individual redis-server instance is to use plain |
Beta Was this translation helpful? Give feedback.
@sophiamariem Have you tried out the latest master commits to see if it is different in there? This error you write about should be fixed in there as if i run the following that is trying to connect to a redis-server instance that do not have cluster mode enabled i get the following stacktrace