Skip to content

Conversation

@praboud-ant
Copy link
Collaborator

Cherry-picks redis/redis-py#3803 onto our hotfix branch, because I'm having trouble getting redis-py core to review this change. See the original PR for description / motivation.

# Make sure cluster mode is enabled on this node
try:
cluster_slots = str_if_bytes(r.execute_command("CLUSTER SLOTS"))
r.connection_pool.disconnect()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this disconnect() actually turns out to be the most important part of this change, although I didn't know it at the time. I'm highly suspicious that disconnecting these connections can cause a connection storm when one node gets overwhelmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants