Skip to content

PYTHON-367 - Mitigate timeouts and resource expansion during full cluster outage#379

Merged
aholmberg merged 4 commits into
masterfrom
367
Aug 13, 2015
Merged

PYTHON-367 - Mitigate timeouts and resource expansion during full cluster outage#379
aholmberg merged 4 commits into
masterfrom
367

Conversation

@aholmberg
Copy link
Copy Markdown
Contributor

No description provided.

Makes defuncting more efficient when there are many concurrent requests.

Also corrects signalling semantics - only accrue one connection error
per instance (not one per requests * instance).
PYTHON-367

Prevents unnecessary expansion of the timer heap during full outage,
preventing resource explosion for pathological applications.
Prevents the event loop thread from being tied up too long when there
are many concurrent requests on a broken connection.
Comment thread cassandra/pool.py
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like a lot of the same code as in HostConnection does it make sense to merge any of this into a Connection method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah. That's unfortunate. I put this flagging and logic at the pool level to avoid Connection having to know about Cluster and pooling logic. They are not quite the same because of the difference around replacing connections.

aholmberg added a commit that referenced this pull request Aug 13, 2015
PYTHON-367 - Mitigate timeouts and resource expansion during full cluster outage
@aholmberg aholmberg merged commit 1d097a0 into master Aug 13, 2015
@aholmberg aholmberg deleted the 367 branch August 13, 2015 15:01
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