Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Check if redis cluster mode is enabled #446

Answered by Grokzen
sophiamariem asked this question in Q&A
Discussion options

You must be logged in to vote

@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

>>> rc = RedisCluster(host="127.0.0.1", port=6379)
Traceback (most recent call last):
  File "/home/grok/code/github/redis-py-cluster/rediscluster/nodemanager.py", line 226, in initialize
    cluster_slots = r.execute_command("cluster", "slots")
  File "/home/grok/.virtualenvs/redis-py-cluster/lib/python3.9/site-packages/redis/client.py", line 901, in execute_command
    return self.parse_response(c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sophiamariem
Comment options

Answer selected by Grokzen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants