Skip to content
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

always reduce connection count when force disconnecting #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eoghanmurray
Copy link
Contributor

@eoghanmurray eoghanmurray commented May 25, 2021

I can't see any reason for that check on self.max_connections_per_node given that count_all_num_connections sums over all node connections when max_connections_per_node == False.
I was quickly running into the MaxConnections error when a single node was likely slow in it's response. I was wondering why it went away when I experimented with setting max_connections_per_node in the config.

I can't see any reason for that check on `self.max_connections_per_node` given that `count_all_num_connections` sums over all node connections when `count_all_num_connections == False`.
I was quickly running into the MaxConnections error when a single node was likely slow in it's response.  I was wondering why it went away when I experimented with setting `max_connections_per_node` in the config.
@TheKevJames
Copy link
Contributor

Hi @eoghanmurray -- just wanted to let you know that my org has recently forked aredis as it appears to have become unmaintained and we've merged in this pull request (and all other open PRs against the aredis repo); in case you find it useful, the fork is here and version 2.0.0 is on PyPI with your changes.

Wanted to especially thank you for your work here -- we've been running into a leaking connection issue for ages on aredis and that's one of the major things which prompted us to start maintaining a fork. Seeing that long-standing issue get resolved as soon as I merged in this PR was fantastic and is going to save me from so many pagerdutys!

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.

2 participants